From 03d140dc0dec4db0d6e061df69352ce2b8b0cf71 Mon Sep 17 00:00:00 2001 From: Christopher Harvey Date: Wed, 4 Aug 2010 21:00:09 -0400 Subject: Fixed bug where stale input validation scripts weren't being reloaded. --- src/ventoo/main.py | 3 +++ 1 file changed, 3 insertions(+) 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) -- cgit v1.2.3-65-gdbad