New submission from Brett Cannon: $ touch blah.py; ./python -c "import blah; print(blah.__file__)" ./blah.py
Should really change that to be an absolute path since the file's location is not accurate if you call os.chdir(). ---------- components: Interpreter Core messages: 192772 nosy: brett.cannon priority: normal severity: normal stage: test needed status: open title: Move to absolute file paths for module.__file__ type: behavior versions: Python 3.4 _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue18416> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com