[pypy-svn] r36250 - pypy/dist/pypy/bin

guido at codespeak.net guido at codespeak.net
Mon Jan 8 12:39:34 CET 2007


Author: guido
Date: Mon Jan  8 12:39:31 2007
New Revision: 36250

Modified:
   pypy/dist/pypy/bin/jscompile.py
   pypy/dist/pypy/bin/startcompile.py
Log:
(cfbolz, guido) fixed path import


Modified: pypy/dist/pypy/bin/jscompile.py
==============================================================================
--- pypy/dist/pypy/bin/jscompile.py	(original)
+++ pypy/dist/pypy/bin/jscompile.py	Mon Jan  8 12:39:31 2007
@@ -15,7 +15,7 @@
 
 def process_options(argv):
     jsconfig = Config(js_optiondescr)
-    parser, to_optparse(jsconfig)
+    parser = to_optparse(jsconfig)
     parser.disable_interspersed_args()
     options, args = parser.parse_args(argv)
     return args, jsconfig
@@ -25,4 +25,5 @@
     curdir = os.getcwd()
     if curdir not in sys.path:
         sys.path.insert(0, curdir)
-    rpython2javascript_main(args, jsconfig)
+    print args
+    rpython2javascript_main(args[1:], jsconfig)

Modified: pypy/dist/pypy/bin/startcompile.py
==============================================================================
--- pypy/dist/pypy/bin/startcompile.py	(original)
+++ pypy/dist/pypy/bin/startcompile.py	Mon Jan  8 12:39:31 2007
@@ -1,7 +1,7 @@
 #!/usr/bin/python
 
 import autopath
-import path
+from pypy.tool.build.bin import path
 import sys
 import random
 from pypy.tool.build import config



More information about the Pypy-commit mailing list