1
0
mirror of https://github.com/arsenetar/dupeguru.git synced 2026-02-03 20:01:38 +00:00

[#52] Added file recycling support on OS X.

--HG--
extra : convert_revision : svn%3Ac306627e-7827-47d3-bdf0-9a457c9553a1/trunk%40102
This commit is contained in:
hsoft
2009-08-31 12:04:43 +00:00
parent 4cebd142ed
commit 047b4aff0c
7 changed files with 250 additions and 13 deletions

View File

@@ -1,18 +0,0 @@
# Created By: Virgil Dupras
# Created On: 2009-05-24
# $Id$
# Copyright 2009 Hardcoded Software (http://www.hardcoded.net)
#
# 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
import winshell
import app
class DupeGuru(app.DupeGuru):
@staticmethod
def _recycle_dupe(dupe):
winshell.delete_file(unicode(dupe.path), no_confirm=True)

View File

@@ -12,10 +12,7 @@ from PyQt4.QtGui import QApplication, QIcon, QPixmap
import base.dg_rc
if sys.platform == 'win32':
from app_win import DupeGuru
else:
from app import DupeGuru
from app import DupeGuru
if __name__ == "__main__":
app = QApplication(sys.argv)