modifying a python2 program installed by deb package. -- How to get *.pyc files?
Hya,
System Debian (amd64) buster. Both python2 and python3 are installed. Situation I'd like to modify 'bibus' program, which is installed by debian package. This is a program written in python2. I found several lines to modify in *.py files. These files were edited by root privilege. I want to compile these modules. Running the program with user privilege did not take care of this issue. It looks like that *pyc modules are compiled after installation by postinst script. Code:
... Closing remark I will appreciate any information. Have a happy penguin! |
pyc files are usually generated by the python executable itself, you do not need to take care about that.
In your case the pyc files cannot be saved, so python will always recompile py files and will not use pyc files. |
It looks like (so far no trouble), pycompile works.
|
All times are GMT -5. The time now is 03:01 PM. |