Hi,

You can try:

>> import sys
>> sys.path.append('<absolute_path_to_program_dir>')
>> import <module.py>

Or else you can append the path to global PYTHONPATH environment variable and whenever you will type:

python <module.py> on the command prompt/bash shell the script gets executed.


Hope that helps.

Thanks,

- Arun


On 10/8/06, max . <[EMAIL PROTECTED]> wrote:
first off i just started looking for Tkinter tutorials but havent found much
and what i have found was not very good if anyone knows og any Tkinter
tutorials pleas let me know

second is thair anyway to change the path that python looks for a program in
ex: if i enter python hello into the command line then i get this error

/Library/Frameworks/Python.framework/Versions/2.4/Resources/Python.app/Contents/MacOS/Python:
can't open file 'hello1': [Errno 2] No such file or directory

can i chage that search path?
if so how?

thx



^_^"  s33 y4

_________________________________________________________________
Search—Your way, your world, right now!
http://imagine-windowslive.com/minisites/searchlaunch/?locale=en-us&FORM=WLMTAG



_______________________________________________
Tutor maillist  -  Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor



_______________________________________________
Tutor maillist  -  Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor

Reply via email to