|
1 # Copyright 2013 Hardcoded Software (http://www.hardcoded.net) |
|
2 |
|
3 # This software is licensed under the "BSD" License as described in the "LICENSE" file, |
|
4 # which should be included with this package. The terms are also available at |
|
5 # http://www.hardcoded.net/licenses/bsd_license |
|
6 |
|
7 import sys |
|
8 |
|
9 if sys.platform == 'darwin': |
|
10 from .plat_osx import send2trash |
|
11 elif sys.platform == 'win32': |
|
12 from .plat_win import send2trash |
|
13 else: |
|
14 try: |
|
15 # If we can use gio, let's use it |
|
16 from .plat_gio import send2trash |
|
17 except ImportError: |
|
18 # Oh well, let's fallback to our own Freedesktop trash implementation |
|
19 from .plat_other import send2trash |