My python app loads other py or pyc files and execute them. I am shipping my app as executable (bundled as single or multiple files - does not matter). I want my app to support adaptive installation. For example: If I ship my app (bundled exe) including ModuleA
and ModuleB
, and later on, I want the user to install only ModuleC
instead of the entire app. I am looking for the following options:
- If I can ship
ModuleA.pyc
andModuleB.pyc
separately in the distribution rather than zipped inmyApp.exe
? I am assuming that user can install ModuleC.pyc
by copying it to the same directory of other Modules. And, it will work for anew_script.py
(via importModuleC
) which will be executed bymyApp.exe
. - If first is not possible, then what is the other way of shipping
ModuleC
rather than the wholemyApp.exe
bundle.
Awesome people, please suggest that how can I do it or is there any better approach of doing it.
Thanks a lot in advance.