Author: Ronan Lamy <[email protected]>
Branch: pypy3.3-bootstrap
Changeset: r82923:6a5e412892d7
Date: 2016-03-09 20:43 +0000
http://bitbucket.org/pypy/pypy/changeset/6a5e412892d7/
Log: Do not store the absolute path of the source into the translated
executable (breaks stuff)
diff --git a/pypy/module/sys/state.py b/pypy/module/sys/state.py
--- a/pypy/module/sys/state.py
+++ b/pypy/module/sys/state.py
@@ -14,16 +14,7 @@
self.w_modules = space.newdict(module=True)
self.w_warnoptions = space.newlist([])
self.w_argv = space.newlist([])
-
- self.setinitialpath(space)
-
- def setinitialpath(self, space):
- from pypy.module.sys.initpath import compute_stdlib_path
- # Initialize the default path
- pypydir = os.path.dirname(os.path.abspath(pypy.__file__))
- srcdir = os.path.dirname(pypydir)
- path = compute_stdlib_path(self, srcdir)
- self.w_path = space.newlist([space.wrap(p) for p in path])
+ self.w_path = space.newlist([])
def get(space):
return space.fromcache(State)
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit