Originally posted by ghostdog74
PYTHONPATH environment variable is probably the most straight forward approach.
#.pth file for PyWin32 extensions win32 win32\lib Pythonwin
>>> import win32com.client.connect >>>
c:\> python connect.py python: can't open 'connect.py': [Errno 2] No such file or directory
c:\> set PYTHONPATH=d:\script c:\> echo %PYTHONPATH% d:\script c:\> python myscript.py python: can't open file 'myscript.py': [Errno 2] No such file or directory
c:\> set PYTHONPATH=d:\script c:\> echo %PYTHONPATH% d:\script c:\> python myscript.py python: can't open file 'myscript.py': [Errno 2] No such file or directory
C:\Documents and Settings\Andrew Rufkahr>addressbook.py 1) Add Entry 2) Remove Entry 3) Find Entry 4) List Entries 5) Quit and save Select a choice(1-6):
C:\Documents and Settings\Andrew Rufkahr>addressbook.py 1) Add Entry 2) Remove Entry 3) Find Entry 4) List Entries 5) Quit and save Select a choice(1-6):
Comment