[pypy-svn] r11426 - pypy/dist/pypy/translator
arigo at codespeak.net
arigo at codespeak.net
Mon Apr 25 17:16:22 CEST 2005
Author: arigo
Date: Mon Apr 25 17:16:22 2005
New Revision: 11426
Modified:
pypy/dist/pypy/translator/translator.py
Log:
It's useful to enable 'import mymodule' from the current directory to allow
playing around with the translator.
Modified: pypy/dist/pypy/translator/translator.py
==============================================================================
--- pypy/dist/pypy/translator/translator.py (original)
+++ pypy/dist/pypy/translator/translator.py Mon Apr 25 17:16:22 2005
@@ -288,6 +288,10 @@
if __name__ == '__main__':
from pypy.translator.test import snippet as test
+ import sys
+ if (os.getcwd() not in sys.path and
+ os.path.curdir not in sys.path):
+ sys.path.insert(0, os.getcwd())
print __doc__
# 2.3 specific -- sanxiyn
More information about the Pypy-commit
mailing list