mirror of
https://github.com/arsenetar/send2trash.git
synced 2024-12-14 16:19:01 +00:00
8a1dff2947
--HG-- rename : modules/trash_osx.c => modules/send2trash_osx.c rename : modules/trash_win.c => modules/send2trash_win.c
10 lines
232 B
Python
10 lines
232 B
Python
import os.path as op
|
|
import _send2trash_win
|
|
|
|
def send2trash(path):
|
|
if not isinstance(path, unicode):
|
|
path = unicode(path, 'mbcs')
|
|
if not op.isabs(path):
|
|
path = op.abspath(path)
|
|
_send2trash_win.send(path)
|