[pypy-svn] r55230 - pypy/dist/pypy/translator/goal

fijal at codespeak.net fijal at codespeak.net
Mon May 26 02:18:18 CEST 2008


Author: fijal
Date: Mon May 26 02:18:18 2008
New Revision: 55230

Modified:
   pypy/dist/pypy/translator/goal/targetgbimplementation.py
Log:
First argument is a program name, second is a real argument


Modified: pypy/dist/pypy/translator/goal/targetgbimplementation.py
==============================================================================
--- pypy/dist/pypy/translator/goal/targetgbimplementation.py	(original)
+++ pypy/dist/pypy/translator/goal/targetgbimplementation.py	Mon May 26 02:18:18 2008
@@ -8,8 +8,8 @@
 
 
 def entry_point(argv=None):
-    if argv is not None and len(argv) > 0:
-        filename = argv[0]
+    if argv is not None and len(argv) > 1:
+        filename = argv[1]
     else:
         pos = str(9)
         filename = ROM_PATH+"/rom"+pos+"/rom"+pos+".gb"



More information about the Pypy-commit mailing list