2009-08-31 12:04:43 +00:00
|
|
|
# -*- coding: utf-8 -*-
|
2009-06-01 09:55:11 +00:00
|
|
|
# Created By: Virgil Dupras
|
2009-08-31 12:04:43 +00:00
|
|
|
# Created On: 2009-08-31
|
2009-06-01 09:55:11 +00:00
|
|
|
# $Id$
|
|
|
|
# Copyright 2009 Hardcoded Software (http://www.hardcoded.net)
|
2009-08-05 08:59:46 +00:00
|
|
|
#
|
|
|
|
# This software is licensed under the "HS" 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/hs_license
|
2009-06-01 09:55:11 +00:00
|
|
|
|
2009-08-31 12:04:43 +00:00
|
|
|
import os
|
|
|
|
import os.path as op
|
2009-06-01 09:55:11 +00:00
|
|
|
|
2009-08-31 12:04:43 +00:00
|
|
|
CMD = unicode(op.join(op.dirname(__file__), 'SendToTrash'))
|
2009-06-01 09:55:11 +00:00
|
|
|
|
2009-08-31 12:04:43 +00:00
|
|
|
def recycle_file(path):
|
|
|
|
print u'%s "%s"' % (CMD, unicode(path))
|
|
|
|
os.system(u'%s "%s"' % (CMD, unicode(path)))
|