[Checkins] SVN: grokproject/trunk/grokproject/utils.py use full paths to scripts and make sure not site packages are imported

Jan-Wijbrand Kolman janwijbrand at gmail.com
Mon Oct 25 05:46:53 EDT 2010


Log message for revision 117841:
  use full paths to scripts and make sure not site packages are imported

Changed:
  U   grokproject/trunk/grokproject/utils.py

-=-
Modified: grokproject/trunk/grokproject/utils.py
===================================================================
--- grokproject/trunk/grokproject/utils.py	2010-10-25 07:43:44 UTC (rev 117840)
+++ grokproject/trunk/grokproject/utils.py	2010-10-25 09:46:53 UTC (rev 117841)
@@ -96,13 +96,13 @@
 
 def run_buildout(verbose=False, use_distribute=False):
     # Run the project's bootstrap.
-    cmd = sys.executable + ' bootstrap.py'
+    cmd = sys.executable + ' -S ' + os.path.join(os.getcwd(), 'bootstrap.py')
     if use_distribute:
         cmd += ' --distribute'
     print 'Running %s...' % cmd
     subprocess.call(cmd, shell=True)
     # Then, run the project's buildout.
-    cmd = os.path.join('bin', 'buildout')
+    cmd = os.path.join(os.getcwd(), 'bin', 'buildout')
     if verbose:
         cmd += ' -v'
     print 'Running %s...' % cmd



More information about the checkins mailing list