This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author s1113950
Recipients s1113950
Date 2016-12-09.20:55:37
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1481316937.81.0.393153740651.issue28926@psf.upfronthosting.co.za>
In-reply-to
Content
Called subprocess.Popen("python_file.py", shell=True).wait(), which triggered a call to `Base.metadata.create_all(engine)` inside `python_file.py`

This caused nothing after the `create_all(engine)` call to execute in `python_file.py` But, if I changed `subprocess.Popen` to `subprocess.check_call("python_file", shell=True).wait()`, the desired behavior was achieved.

I was able to continue past `create_all(engine)` if there was an error in the parent script after the subprocess call. In this case, then `python_file.py` was able to execute fully as expected.
History
Date User Action Args
2016-12-09 20:55:37s1113950setrecipients: + s1113950
2016-12-09 20:55:37s1113950setmessageid: <1481316937.81.0.393153740651.issue28926@psf.upfronthosting.co.za>
2016-12-09 20:55:37s1113950linkissue28926 messages
2016-12-09 20:55:37s1113950create