Several console commands with py2exe

My current setup.py has three console_scripts entries:

 console_scripts=[ 'myapp-dev=bin/run:dev', 'myapp=bin/run:prod', 'myapp-cmd-line=bin/run:cmd' ] 

run.py contains trivial functions for them:

 #!/usr/bin/env python myapp = App() def dev(): myapp.run(mode='dev') def prod(): myapp.run() def cmdline(): myapp.run(mode='cmd') 

Is there a way to create 3 separate .exe files for each of the above

+5
source share

Source: https://habr.com/ru/post/1276086/


All Articles