Custom PYTHONPATH not being seen by -m

Vince Castellano surye80 at
Wed Sep 19 01:42:38 CEST 2007


I am running RHEL5, with Python 2.4.3. I do not experience this
problem on my other machines, which are 2.5.

The following should demonstrate my issue:

[16:38][vince:~]$ python -m srctools.symbol_replace -h
python: module srctools.symbol_replace not found
[16:40][vince:~]$ python
Python 2.4.3 (#1, Dec 11 2006, 11:38:52)
[GCC 4.1.1 20061130 (Red Hat 4.1.1-43)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import srctools.symbol_replace
>>> srctools.symbol_replace
<module 'srctools.symbol_replace' from '/usr/local/pymodules/srctools/'>
[16:41][vince:~]$ echo $PYTHONPATH

Thank you,

More information about the Python-list mailing list