Fixed an issue in the install script.

Sun, 18 May 2014 19:48:23 +0200

author
Detlev Offenbach <detlev@die-offenbachs.de>
date
Sun, 18 May 2014 19:48:23 +0200
changeset 3594
778ae276540f
parent 3593
e3435c1ce0cf
child 3595
a8433c7a0d8c

Fixed an issue in the install script.

install.py file | annotate | diff | comparison | revisions
--- a/install.py	Sun May 18 19:44:43 2014 +0200
+++ b/install.py	Sun May 18 19:48:23 2014 +0200
@@ -354,13 +354,13 @@
     for formName, sourceName in [(f.replace('Ui_',"").replace(".py",".ui"), f)
                                  for f in dirListing
                                  if fnmatch.fnmatch(f, "Ui_*.py")]:
-        if not os.path.exist(os.path.join(dirName, formName)):
+        if not os.path.exists(os.path.join(dirName, formName)):
             os.remove(os.path.join(dirName, sourceName))
-            if os.path.exist(os.path.join(dirName, sourceName + "c")):
+            if os.path.exists(os.path.join(dirName, sourceName + "c")):
                 os.remove(os.path.join(dirName, sourceName + "c"))
     
     # step 2: delete the __pycache__ directory
-    if os.path.exist(os.path.join(dirName, "__pycache__")):
+    if os.path.exists(os.path.join(dirName, "__pycache__")):
         shutil.rmtree(os.path.join(dirName, "__pycache__"))
     
     # step 3: descent into subdirectories and delete them if empty

eric ide

mercurial