ThirdParty/Send2Trash/send2trash/__init__.py

changeset 3644
a2c88b9b1d16
child 4555
861e1741985c
equal deleted inserted replaced
3642:1a6f8d9b63a5 3644:a2c88b9b1d16
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

eric ide

mercurial