Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Python: Python
Python search path (on Windows)
 

Index | Next | Previous | View Flat


wb at noname

Oct 22, 2008, 2:03 AM


Views: 130
Permalink
Python search path (on Windows)

I would like to execute a Python script from Windows command line:

Python myscript.py

This works if myscript.py resides in the current folder. My question is:
Is it possible to execute the command above from another folder?

I put the script's folder in the PYTHONPATH environment variable but this
didn't help.

Thanks for your help!


--
http://mail.python.org/mailman/listinfo/python-list

Subject User Time
Python search path (on Windows) wb at noname Oct 22, 2008, 2:03 AM
    Re: Python search path (on Windows) gagsl-py2 at yahoo Oct 22, 2008, 2:32 AM
    Re: Python search path (on Windows) deets at nospam Oct 22, 2008, 3:10 AM
    Re: Python search path (on Windows) antroy at gmail Oct 22, 2008, 5:07 AM

  Index | Next | Previous | View Flat
 
 


Interested in having your list archived? Contact lists@gossamer-threads.com
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.