Yui
Yui

Reputation: 103

executing a python(or iron python) script via iron python

is this possible? I want to execute a different scriptfile from a iron python script. My main file is getting way to big and I want to make it more readable.

Upvotes: 0

Views: 232

Answers (1)

dmg
dmg

Reputation: 7706

Why don't you reorganize your script into, say a Python module? Have a look at the Python Docs about Modules

@OP's comment: If you truely have a ~5000 lines of code in a single function you should definitely think about reorganizing your code. If you are sure about that "execute a different script" thing, take a look at subprocess.Popen, although I wouldn't advise it.

Upvotes: 1

Related Questions