mirror of
https://github.com/arsenetar/send2trash.git
synced 2026-03-22 14:41:38 +00:00
Renamed _trash_* modules to _send2trash_* and added python wrapper around them.
--HG-- rename : modules/trash_osx.c => modules/send2trash_osx.c rename : modules/trash_win.c => modules/send2trash_win.c
This commit is contained in:
9
send2trash/plat_win.py
Normal file
9
send2trash/plat_win.py
Normal file
@@ -0,0 +1,9 @@
|
||||
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)
|
||||
Reference in New Issue
Block a user