Commits

Anonymous committed d5508d2

[svn r3561] fix --python

Comments (0)

Files changed (1)

         else:
             logger.notify('Running virtualenv with interpreter %s' % interpreter)
             env['VIRTUALENV_INTERPRETER_RUNNING'] = 'true'
+            file = __file__
+            if file.endswith('.pyc'):
+                file = file[:-1]
             os.execvpe(interpreter, [interpreter, __file__] + sys.argv[1:], env)
 
     if not args: