How to run another python script?

Jean-Michel Pichavant jeanmichel at
Mon Feb 14 19:55:32 CET 2011

Dan Lee wrote:
> Hi.
> I just knew what python is.
> Now I'm about to write backup script.Now I got 2 scripts.
> AAA : generate zip file
> BBB : delete old file.
> AAA is done.
> Now I'm going to code BBB file. and I will fix AAA to call BBB to
> delete dump file at the end.
> Please let me know How can I call the BBB file from AAA file.
> Thanks in advance.
> Dan
In that case, code the delete function in AAA => No BBB file, problem 
There is of course plenty of ways to execute BBB from AAA but that would 
be overkill.

If you really want to write the BBB file, then write it, import it in 
AAA and call the BBB.deleteOldFile function.


More information about the Python-list mailing list