Display MoreIt's sunday, I have had my redbull, so might as well give you a full detailed answer.
It all depends on what you are trying to achieve.Are you just wanting to look into the code to see how somebody has done something.
Or are you wanting to amend the plugin/skin code and rebuild the IPK. Which is a bit more work.
The easiest way to extract an IPK on windows is to use 7zip.https://www.7-zip.org/download.html
Then double clicking on the ipk will give you normally 3 folders
debian-binary
data.tar.gz
control.tar.gz
You can ignore debian-binary and control.tar.gz but all your files live in data.tar.gz
Keep double clicking on the folders in data.tar.gz and you will eventually come to all your files .
which will give you a folder structure of something like this.
\data.tar.gz\data.tar\.\usr\lib\enigma2\python\Plugins\Extensions\youripkfolderCopy the root folder of the files you want to your computer somewhere.
Now if this is a skin, you will be presented with a load of xml files. Use notepad++ or an xml editor like xml wrench to amend the code.
If this is a plugin, you will probably be presented with a load of python compiled files. in the format PYO.
Pyo files are not readable. You would have to decompile them into py files.
You can decompile PYO files with "easy python decompiler".
https://sourceforge.net/projects/easypythondecompiler/files/
This is a drag a drop utility. Drag them into the program, rename the created decomplied file with a py extension.
Open the files up in a text editor like notepad++, I personally use Geany for editing python files but that is a bit more work to set up. But you can google it to find out how to set up geany and python if need be. It isn't really required though.
Now if editting py files, spaces and tabs are important and must match surrounding lines indents. Failure to keep the same tabbing structure will result in the file not compiling at run time.
Once you have editted your IPK then you need to
1) If you have already installed the original IPK on your box, its just case of copying of the editted individual file to the correct location.
2) if you haven't installed the original IPK on your box, you need to rebuild your IPK and install it. That is more fun and games. Let me know if this is what you want to do.
how do you recompile the py when done
thanks