Add sys.exit(main()) so that the console script entry-point in the pip-installable package will have the same behavior as when run directly (packaging-considerations). Additionally, the return value of os.system is system-dependent and may shift by 8 if the signal number is zero (os.system). This may cause the exit status is still 0 (low byte = signal number = 0), and therefore, I replaced it with subprocess.call.
Most systems require it to be in the range 0–127, and produce undefined results otherwise. (sys.exit)
363
Add
sys.exit(main())
so that the console script entry-point in the pip-installable package will have the same behavior as when run directly (packaging-considerations). Additionally, the return value ofos.system
is system-dependent and may shift by 8 if the signal number is zero (os.system). This may cause the exit status is still 0 (low byte = signal number = 0), and therefore, I replaced it withsubprocess.call
.I'd love to hear your feedback.