2010-04-07 06:52:24 +00:00
|
|
|
# Copyright 2010 Hardcoded Software (http://www.hardcoded.net)
|
|
|
|
|
|
|
|
# This software is licensed under the "BSD" License as described in the "LICENSE" file,
|
|
|
|
# which should be included with this package. The terms are also available at
|
|
|
|
# http://www.hardcoded.net/licenses/bsd_license
|
|
|
|
|
2010-04-06 16:04:32 +00:00
|
|
|
import os.path as op
|
2010-07-07 14:12:13 +00:00
|
|
|
import send2trash_win
|
2010-04-06 16:04:32 +00:00
|
|
|
|
|
|
|
def send2trash(path):
|
2010-07-07 14:12:13 +00:00
|
|
|
if not isinstance(path, str):
|
|
|
|
path = str(path, 'mbcs')
|
2010-04-06 16:04:32 +00:00
|
|
|
if not op.isabs(path):
|
|
|
|
path = op.abspath(path)
|
2010-07-07 14:12:13 +00:00
|
|
|
send2trash_win.send(path)
|