| | |
running a process from a python program
Please support our Python advertiser: Programming Forums - DaniWeb Sister Site
![]() |
•
•
Join Date: Aug 2005
Posts: 18
Reputation:
Solved Threads: 0
Hello beautiful people..!
i need a way to run a python program from another one...
does anyone know what is the best way to call a process which runs another program in python, and when running that child process, causing the parent process to continue without waiting for the child process to return?
i need a way to run a python program from another one...
does anyone know what is the best way to call a process which runs another program in python, and when running that child process, causing the parent process to continue without waiting for the child process to return?
To get two Python functions running concurrently, you're going to need to look at Python's threading modules.
There is a good site with example code here.
As for the main question, well, you could always exec() the second Python program from the first. But please don't do this unless you absolutely have to. A much neater solution is to import the second Python program as a module, then call its functions in a separate thread.
There is a good site with example code here.
As for the main question, well, you could always exec() the second Python program from the first. But please don't do this unless you absolutely have to. A much neater solution is to import the second Python program as a module, then call its functions in a separate thread.
Vi veri veniversum vivus vici
![]() |
Similar Threads
- Starting Python (Python)
- Jumps into code on program end (Pascal and Delphi)
- I Need Help Writing A Word Count Program In My Python (Python)
- Need help with a simple python program (Python)
- Running Python (Python)
- internet form handling (Python)
- help remove webdialer and popups!! (HJT) (Viruses, Spyware and other Nasties)
Other Threads in the Python Forum
- Previous Thread: backup files to cdr ?
- Next Thread: Help making a function
Views: 3594 | Replies: 1
| Thread Tools | Search this Thread |
Tag cloud for Python
abrupt apache approximation argv array beginner binary book calculator change cipher clear code compile converter countpasswordentry cturtle dictionaries dictionary drive dynamic examples excel file float format ftp function gui homework import inches input java keyboard library line linux list lists loop maze mouse mysqldb mysqlquery newb number numbers output parsing path plugin port prime program programming projects py2exe pygame pymailer pyqt python random recursion recursive remote scrolledtext search session signal singleton socket ssh string strings strip table terminal text textarea thread threading time tkinter tlapse trick tuple tutorial ubuntu unicode unit urllib urllib2 variable verify vigenere windows wordgame wxpython xlwt





