By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
444,001 Members | 1,262 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 444,001 IT Pros & Developers. It's quick & easy.

Re: Please solve me the problem

P: n/a
sagar panda wrote:

I am sagar. I want to write a python script that will run the python
scripts automatically from a directory. Please help me out to sovle this
You can use the execfile() builtin function to execute Python scripts.
And you can use glob.glob("/some/path/*.py") to find the Python scripts.
You'll need to import the glob module first, of course.

That should help you implement the solution.

-- Gerhard

Jun 27 '08 #1
Share this question for a faster answer!
Share on Google+

This discussion thread is closed

Replies have been disabled for this discussion.