Message 1 of 11
Python subprocess module causing crash + reopening

Not applicable
06-10-2020
10:43 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I'm making a call to subprocess in my addin script that reads:
s2_out = subprocess.check_output([sys.executable, "fullscriptpath.py", "34"])
fullscriptpath.py is a basic script that reads:
import sys
def main(arg):
print("Hello World"+arg)
if __name__ == "__main__":
main(sys.argv[1])
Upon encountering the call to subprocess, however, Fusion freezes (I'm pretty sure as a crash, since it doesn't unfreeze if I wait) and spontaneously opens a second instance of Fusion. Is this a quirk of the subprocess module, or maybe sys.executable?