Browse files

ensure a exists and if it does clear out the pyc file to…

… ensure no cached data is used
  • Loading branch information...
1 parent 7c5d048 commit 91780cf224d3fb0748947a53a05867d19fdef2c4 Dane Springmeyer committed Jul 27, 2012
Showing with 7 additions and 1 deletion.
  1. +7 −1
@@ -7,9 +7,15 @@
from json import loads, dumps
from glob import glob
from shutil import rmtree
-from os.path import join, isdir, expanduser
+from os.path import join, isdir, expanduser, exists
from collections import defaultdict
+if not exists('./'):
+ sys.stderr.write('Error: does not exist, did you forget to create it from the sample (\n')
+ sys.exit(1)
+elif exists('./configure.pyc'):
+ unlink('./configure.pyc')
from configure import config
from lib.utils import copy_tree

0 comments on commit 91780cf

Please sign in to comment.