On 23/07/12 11:22, Devin Jeanpierre wrote:
On Mon, Jul 23, 2012 at 6:02 AM, Lipska the Kat<lip...@lipskathekat.com> wrote:
The PYTHONPATH ev is set to /home/lipska/python/dev/mods:.
in .bashrc
Did you export it? Show us your .bashrc, or the relevant line in it
exactly. (And make sure that it isn't defined multiple times).
forgot to export it <stupid> <stupid> <stupid>
Also adding . to the import search path is probably a bad diea.
I removed it
lipska@ubuntu:~/python/dev/mods$ test.py
Traceback (most recent call last):
File "./test.py", line 5, in<module>
fib(1000)
NameError: name 'fib' is not defined
Neither of the files you described in your email message contain the
line "fib(1000)", so you pasted the wrong files.
See grovelling apology in other reply
I also have an empty file __init__.py in the mods directory
This only matters if you want to "import mods".
huh .. OK, I'll read again
Thanks for taking the time to reply
It all works now
Lipska <slinks away to hide>
--
Lipska the Kat: Troll hunter, Sandbox destroyer
and Farscape dreamer of Aeryn Sun.
--
http://mail.python.org/mailman/listinfo/python-list