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.

2
  • 2
    Maybe it is easier to pack modules into zip? Like it is done here: docs.python.org/2/library/zipimport.html Commented Apr 20, 2015 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 Commented Apr 20, 2015 at 15:16

0

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.