execute
Dan Upton
upton at virginia.edu
Sun Mar 9 17:41:17 EDT 2008
On Sun, Mar 9, 2008 at 5:22 PM, Gif <pavloutefkros at gmail.com> wrote:
> i'm trying to execute a file without replacing the current process,
> but after searching the help file, documentations and the web, i can't
> a way of doing that.
>
> os.exec*() will close the current program.
>
> ps: by executing i mean like typing "mspaint" in run dialog.. it's not
> a python file
On *nix, you can use os.fork(). According to
http://effbot.org/librarybook/os.htm , you can use os.spawn to
accomplish a similar effect on Windows, although I haven't used it.
Also, you might check the subprocess module --
http://docs.python.org/lib/module-subprocess.html .
-dan
More information about the Python-list
mailing list