469,366 Members | 2,407 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,366 developers. It's quick & easy.

python search path on the command prompt in windows

Is there a way for me to somehow specify that I want Python to search
all subdirectories of a particular directory when I'm running or testing
files from the command prompt?

For example, I have a folder in my C:\Python24 folder called myscripts\.
At first I saved my scripts in there, since there weren't many, and any
work I did from the command prompt I did from this directory (with the
directory added to my PYTHONPATH variable). But after using py2exe and
seeing how many extra files and directories it created, I started to
realize that it would be silly to keep all my files in just one folder.

So I made two folders in my myscripts\ folder, one called mytimer\ and
the other called switches\. Now, if I'm still working in the myscripts\
directory at the command prompt, is there a way for Python to
automatically check into these directories for any files I might be
trying to run?

If not, is there a better way to do this?

Thanks.
Mar 11 '06 #1
0 880

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

5 posts views Thread by Ben Finney | last post: by
2 posts views Thread by Jorgen Grahn | last post: by
10 posts views Thread by Andrew Dalke | last post: by
17 posts views Thread by Paul Rubin | last post: by
9 posts views Thread by Endless Story | last post: by
6 posts views Thread by nsjmetzger | last post: by
13 posts views Thread by c3950ig | last post: by
6 posts views Thread by globalrev | last post: by
1 post views Thread by CARIGAR | last post: by
reply views Thread by zhoujie | last post: by
1 post views Thread by Marylou17 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.