From 4d129ac9430cce540ca235b817616479f531502d Mon Sep 17 00:00:00 2001 From: Kiooeht Date: Wed, 30 Nov 2011 15:45:50 -0800 Subject: [PATCH] Delete profiles from data directory --- menus.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/menus.py b/menus.py index f187b43..ec38778 100644 --- a/menus.py +++ b/menus.py @@ -7,6 +7,8 @@ from dataobjs import pesterQuirk, PesterProfile from memos import TimeSlider, TimeInput from version import _pcVersion +_datadir = ostools.getDataDir() + class PesterQuirkItem(QtGui.QTreeWidgetItem): def __init__(self, quirk): parent = None @@ -890,7 +892,7 @@ class PesterChooseProfile(QtGui.QDialog): ret = msgbox.exec_() if ret == QtGui.QMessageBox.Ok: try: - remove("profiles/%s.js" % (handle)) + remove(_datadir+"profiles/%s.js" % (handle)) except OSError: problem = QtGui.QMessageBox() problem.setStyleSheet(self.theme["main/defaultwindow/style"])