alonho/pytrace

Current dir not in library load path in MacOS Lion

Closed this issue · 1 comments

decster:/projects/divi> pytrace test_exex.py
Traceback (most recent call last):
File "/usr/local/bin/pytrace", line 8, in
load_entry_point('pytrace==0.1.7', 'console_scripts', 'pytrace')()
File "/Library/Python/2.7/site-packages/pytrace/main.py", line 15, in main
runpy.run_path(sys.argv[0], run_name='main')
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/runpy.py", line 240, in run_path
return _run_module_code(code, init_globals, run_name, path_name)
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/runpy.py", line 82, in _run_module_code
mod_name, mod_fname, mod_loader, pkg_name)
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/runpy.py", line 72, in _run_code
exec code in run_globals
File "test_exex.py", line 3, in
from exex import *
ImportError: No module named exex
decster:
/projects/divi> export PYTHONPATH=pwd
decster:~/projects/divi> pytrace test_exex.py

....

Ran 4 tests in 0.012s

OK

Running into a similar issue:
Traceback (most recent call last):
File "/usr/local/bin/pytrace", line 8, in
load_entry_point('pytrace==0.2.0', 'console_scripts', 'pytrace')()
File "build/bdist.macosx-10.8-intel/egg/pytrace/main.py", line 15, in main
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/runpy.py", line 240, in run_path
return _run_module_code(code, init_globals, run_name, path_name)
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/runpy.py", line 82, in _run_module_code
mod_name, mod_fname, mod_loader, pkg_name)
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/runpy.py", line 72, in _run_code
exec code in run_globals
File "appList.py", line 8, in
from lists import blackList
ImportError: No module named lists