Please solve me the problem
Gerhard Häring
gh at ghaering.de
Tue Jun 3 11:07:02 EDT 2008
sagar panda wrote:
> Hi
>
> 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
> problem?
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
More information about the Python-list
mailing list