Different cache filename

Fabian PyDEV pydev at hotmail.com
Sat Apr 20 01:37:39 EDT 2013


Hi,

when load a module "mymodule.py" with importlib.machinery.SourceFileLoader a bytecode file is created as mymodule.cpython-33.pyc.

If I load a module "mymodule.ext.py" the same way the same bytecode file is created as mymodule.cpython-33.pyc.

Is there any way I could tell python to generate the bycode file as mymodule.ext.cpython-33.pyc?

Regards,
Fabian




More information about the Python-list mailing list