HI
I am having a simple env problem.
from the Book " learning python" I was trying to create a small module
#! /usr/bin/env python
print 'Hello module world!'
This should be simple as it says chmod +x module1.py
and then can be executed by simply typing at a prompt > module1
However I cannot the prompt returns command not found. And the Interpreter
>>> module1
Traceback (most recent call last):
File "<pyshell#1>", line 1, in -toplevel-
module1
NameError: name 'module1' is not defined
>>>
So I set the environmental variable $PATH
echo $PATH /home/flebber/Python /home/flebber
/usr/bin:/bin:/usr/local/bin:/usr/X11R6/bin/:sbin:/usr/sbin:/usr/games:/usr/lib/qt3//bin:/home/flebber/bin:/usr/lib/qt3//bin /home/flebber/Python /home/flebber
tried again but no luck. The solution must be so simple but I can't see it now cause it is so simple.
Any Ideas.