echoing-nightfall-7209501/13/2021, 11:39 AM
and for now a single app in a subdirectory
in this a
pants. build as expected but, I'm not able to run flask in debug mode.
./pants run apps/sample/app.py
Then, I get the following error message:
if __name__ == "__main__": app.run(host='localhost', port=7002, debug=True)
It runs without errors when:
No module named apps.__main__; 'apps' is a package and cannot be directly executed
I've tried googling for this issue, but with no luck. Hence now reaching out. It would be nice not having to
if __name__ == "__main__": app.run(host='localhost', port=7002)
and re-run whenever changes are made to the app when developing. Hope to hear from you! BR Alex
hundreds-father-40401/13/2021, 4:44 PM
to still get debug benefits, but you unfortunately wouldn't get the rewatcher Would you have an interest in trying out #1172? We're happy to help, it'd be the quickest way to get the fix in sooner Also let us know if we can help with anything else with Pants or if you have feedback!
witty-crayon-2278601/13/2021, 5:07 PM
enough-analyst-5443401/13/2021, 8:05 PM
) was not in fact a workaround, but using
is a workaround. That's on master and ships in the upcomping Pex 2.1.25 release. So Pants will have support soon.
echoing-nightfall-7209501/14/2021, 10:48 AM
enough-analyst-5443401/14/2021, 12:11 PM