aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/ventoo/main.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/ventoo/main.py b/src/ventoo/main.py
index b1c8454..0706636 100644
--- a/src/ventoo/main.py
+++ b/src/ventoo/main.py
@@ -182,8 +182,11 @@ class MainWindow(gtk.Window):
valScript = self.currentModule.getValidationScript(xmlPath)
if valScript != None:
#There is a script that can validate this input. import and run it.
+ os.remove("/tmp/thisCheck.py")
+ os.remove("/tmp/thisCheck.pyc")
shutil.copyfile(valScript, '/tmp/thisCheck.py')
import thisCheck as validate
+ reload(validate)
valid = validate.validate(text)
if valid:
self.edit_tv.setValid(thisIter)