nice-florist-5595811/23/2021, 2:43 PM
fast-nail-5540011/23/2021, 3:23 PM
method and then put:
at the bottom of the file. If you use this pattern, then your PEX entry script can simply import that
if __name__ == "__main__": main()
method and call it directly.
nice-florist-5595811/23/2021, 4:02 PM
fast-nail-5540011/23/2021, 4:04 PM
nice-florist-5595811/23/2021, 4:13 PM
enough-analyst-5443411/23/2021, 4:25 PM
and it will work. Pants doesn't currently give you a way to build one though.
nice-florist-5595811/23/2021, 4:31 PM
enough-analyst-5443411/23/2021, 4:35 PM
goal in your repo.
if variance is needed.
fast-nail-5540011/23/2021, 4:52 PM
I guess the way to think of it, when a host restarts it should run some setup script to make things like Python accessible. But we can’t make that assumption, so want to run a shell script first.Are your hosts using a config management solution like chef or puppet?