python - Cx Freeze - how do I convert multiple files into the build folder -


i've made program launches python program using os.startfile().

i wanted have 2 exe files, launching second using subprocess.call() instead, in 1 build folder can't find how this.

i tried making setup file both, creating 2 build folders , copying 1 of exe files other's build folder got this:

traceback (most recent call last):  file "c:\python34\lib\site-packages\cx_freeze\initscripts\__startup__.py", line 12,  in <module> __import__(name + "__init__")  importerror: no module named 'menu_record__init__' 

any ideas?

i quite sure cannot use 2 exe in 1 build folder because although dependencies in build folder same scripts different.

you can use 2 exe in same build folder script.

import sys cx_freeze import setup, executable  options = { 'build_exe': {'path': sys.path + ['modules']} }  executables = [     executable('script_1.py'),     executable('script_2.py')]  setup(     name='two exe in 1 folder',     version='0.1',     description='two exe in single build folder',     options=options,     executables=executables) 

check out other post made

also can copy second build folder in first (you need rename else not build) , call subprocess.call() second build file exe.

otherwise have heard (although have never tried it) pyinstaller or py2exe (i not sure which) can make single file exe.


Comments

Popular posts from this blog

node.js - Node js - Trying to send POST request, but it is not loading javascript content -

javascript - Replicate keyboard event with html button -

javascript - Web audio api 5.1 surround example not working in firefox -