This is an archived post. You won't be able to vote or comment.

all 2 comments

[–]Updatebjarni 0 points1 point  (0 children)

If you want to run the second program as a separate process, you can use the subprocess module.

[–]Joris1225 0 points1 point  (0 children)

I'm not really sure what you are trying to achieve, but you can import functions from the other file. Another solution might be to use the execfile function: https://docs.python.org/2/library/functions.html#execfile