0

I nead too run a python program from another code.

I have the main code wher you can chose what too do and if you chose 1 you will run a surten python program and then return and if you chose 2 you will run some other program and then return.
The programs consist of serveral funktions and variabels.

1
Contributor
1
Reply
12
Views
4 Years
Discussion Span
Last Post by a8med
0

I found the answer online.

For you how wonder:

You can use a funktion calld os.system

this is the way you use it:

import os

os.system("your python file name.py")

and it will run :)

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.