3

Does anyone know if it is possible to merge multiple python files and depended library in a single .pyc bytecode file?

So that instead of keeping multiple files and I can just interpret the library as a single .pyc bytecode file.

moffeltje
  • 4,521
  • 4
  • 33
  • 57
linkin
  • 31
  • 4
  • 2
    Maybe it is easier to pack modules into zip? Like it is done here: https://docs.python.org/2/library/zipimport.html – myaut Apr 20 '15 at 14:58
  • I mean I would like to do something like compileall, but instead of mutiple files I would like to merge all them in a single *.pyc and can execute all in a single command python *.pyc – linkin Apr 20 '15 at 15:16

0 Answers0