Jump to content


Photo

enigma.py decompilied python file


  • Please log in to reply
20 replies to this topic

#1 canymed112

  • Member
  • 23 posts

0
Neutral

Posted 10 June 2013 - 19:30

Hello, where can i find the decompiled python files like enigma.py, which is located in usr/lib/enigma2/python/?


Edited by canymed112, 10 June 2013 - 19:31.

ET9200, OpenPli 3.0, 3.8.7


Re: enigma.py decompilied python file #2 WanWizard

  • PLi® Core member
  • 70,880 posts

+1,833
Excellent

Posted 10 June 2013 - 19:31

opkg install enigma-src

Currently in use: VU+ Duo 4K (2xFBC S2), VU+ Solo 4K (1xFBC S2), uClan Usytm 4K Ultimate (S2+T2), Octagon SF8008 (S2+T2), Zgemma H9.2H (S2+T2)

Due to my bad health, I will not be very active at times and may be slow to respond. I will not read the forum or PM on a regular basis.

Many answers to your question can be found in our new and improved wiki.


Re: enigma.py decompilied python file #3 canymed112

  • Member
  • 23 posts

0
Neutral

Posted 10 June 2013 - 19:37

Thanks a lot! but there is no enigma.py :( Where can i find it??


Edited by canymed112, 10 June 2013 - 19:37.

ET9200, OpenPli 3.0, 3.8.7


Re: enigma.py decompilied python file #4 WanWizard

  • PLi® Core member
  • 70,880 posts

+1,833
Excellent

Posted 10 June 2013 - 19:51

I don't even know if that exists (as such).

 

You'll have to ask a dev where it comes from, there is no such file in the repository (http://sourceforge.n...ci/master/tree/).


Currently in use: VU+ Duo 4K (2xFBC S2), VU+ Solo 4K (1xFBC S2), uClan Usytm 4K Ultimate (S2+T2), Octagon SF8008 (S2+T2), Zgemma H9.2H (S2+T2)

Due to my bad health, I will not be very active at times and may be slow to respond. I will not read the forum or PM on a regular basis.

Many answers to your question can be found in our new and improved wiki.


Re: enigma.py decompilied python file #5 athoik

  • PLi® Core member
  • 8,458 posts

+327
Excellent

Posted 10 June 2013 - 19:55

Enigma2 is not written in python, its written in C++

 

Enigma2 plugins are written in python (or as loadable python modules to gain in speed).


Edited by athoik, 10 June 2013 - 19:57.

Wavefield T90: 0.8W - 1.9E - 4.8E - 13E - 16E - 19.2E - 23.5E - 26E - 33E - 39E - 42E - 45E on EMP Centauri DiseqC 16/1
Unamed: 13E Quattro - 9E Quattro on IKUSI MS-0916

Re: enigma.py decompilied python file #6 canymed112

  • Member
  • 23 posts

0
Neutral

Posted 10 June 2013 - 19:58

but the file extension says its python, right?


ET9200, OpenPli 3.0, 3.8.7


Re: enigma.py decompilied python file #7 canymed112

  • Member
  • 23 posts

0
Neutral

Posted 10 June 2013 - 20:02

I found this source code, but i think i can't use it, because its from a dreambox image?

http://git.opendream...b5d98c3fb9f869b


ET9200, OpenPli 3.0, 3.8.7


Re: enigma.py decompilied python file #8 betacentauri

  • PLi® Core member
  • 7,185 posts

+323
Excellent

Posted 10 June 2013 - 20:05

It's generated automatically from c++ sources (I'm not 100% sure).

Here is one.

Attached Files


Xtrend ET-9200, ET-8000, ET-10000, OpenPliPC on Ubuntu 12.04

Re: enigma.py decompilied python file #9 athoik

  • PLi® Core member
  • 8,458 posts

+327
Excellent

Posted 10 June 2013 - 20:12

but the file extension says its python, right?

 

Yes you are right. Its enigma.py  Probably located here http://sourceforge.n...ree/lib/python/

 

Makefile produces the enigma.py http://sourceforge.n...on/Makefile.inc


Edited by athoik, 10 June 2013 - 20:16.

Wavefield T90: 0.8W - 1.9E - 4.8E - 13E - 16E - 19.2E - 23.5E - 26E - 33E - 39E - 42E - 45E on EMP Centauri DiseqC 16/1
Unamed: 13E Quattro - 9E Quattro on IKUSI MS-0916

Re: enigma.py decompilied python file #10 canymed112

  • Member
  • 23 posts

0
Neutral

Posted 10 June 2013 - 20:17

@betacentauri

 

i did compile the file but enigma2 is not starting anymore, the original enigma.pyo and that one that i compiled haven't the same count of bytes, so thats causing the issue??

It seems as if it isn't the latest file :(


ET9200, OpenPli 3.0, 3.8.7


Re: enigma.py decompilied python file #11 canymed112

  • Member
  • 23 posts

0
Neutral

Posted 10 June 2013 - 20:23

So its probably not possible to change that file, just the c++ code, from which it is generated?


ET9200, OpenPli 3.0, 3.8.7


Re: enigma.py decompilied python file #12 betacentauri

  • PLi® Core member
  • 7,185 posts

+323
Excellent

Posted 10 June 2013 - 20:26

Did you have updated to the latest openpli version? My .py should be for it...

But why do you want to change something in that file? That's not necessary. It only makes sense if you also change c++ code.
Xtrend ET-9200, ET-8000, ET-10000, OpenPliPC on Ubuntu 12.04

Re: enigma.py decompilied python file #13 Sjaaky

  • Senior Member
  • 7,443 posts

+41
Good

Posted 10 June 2013 - 20:59

The c++ part of enigma starts the python part by invoking mytest.py.

Re: enigma.py decompilied python file #14 ims

  • PLi® Core member
  • 13,937 posts

+215
Excellent

Posted 11 June 2013 - 06:22

user's changes in enigma.py is nonsence.

enigma.py is generated, when is builded binary enigma and it is "connection" between c++ routines in binary enigma and python.


Kdo nic nedělá, nic nezkazí!

Re: enigma.py decompilied python file #15 MiLo

  • PLi® Core member
  • 14,055 posts

+298
Excellent

Posted 11 June 2013 - 08:58

Tell us what you want to accomplish.

As IMS wrote, editing enigma.py is pointless and it will - as you have discovered already - only lead to failure.
Real musicians never die - they just decompose

Re: enigma.py decompilied python file #16 canymed112

  • Member
  • 23 posts

0
Neutral

Posted 11 June 2013 - 13:09

okay, i wanted to add some code from here: http://git.opendream...b5d98c3fb9f869b

to allow to set left/right offsets and vertically center texts for configuration lists like in that dreambox image.

 

It would be great if some one could make that possible, it shouldn't be a problem for you devs!

And i'm sure a lot of people also would that, right?


ET9200, OpenPli 3.0, 3.8.7


Re: enigma.py decompilied python file #17 Erik Slagter

  • PLi® Core member
  • 46,969 posts

+542
Excellent

Posted 12 June 2013 - 18:06

Maybe it's something that Littlesat can have a look at?


* Wavefrontier T90 with 28E/23E/19E/13E via SCR switches 2 x 2 x 6 user bands
I don't read PM -> if you have something to ask or to report, do it in the forum so others can benefit. I don't take freelance jobs.
Ik lees geen PM -> als je iets te vragen of te melden hebt, doe het op het forum, zodat anderen er ook wat aan hebben.


Re: enigma.py decompilied python file #18 littlesat

  • PLi® Core member
  • 57,444 posts

+708
Excellent

Posted 12 June 2013 - 18:55

And the changes required in cpp?

Please note it is just additional cosmetic skin stuff....

Edited by littlesat, 12 June 2013 - 18:56.

WaveFrontier 28.2E | 23.5E | 19.2E | 16E | 13E | 10/9E | 7E | 5E | 1W | 4/5W | 15W


Re: enigma.py decompilied python file #19 Erik Slagter

  • PLi® Core member
  • 46,969 posts

+542
Excellent

Posted 12 June 2013 - 19:06

Apparently for some skins it's necessary/preferable to be able to change it. Seems a lot easier to me than to start fiddling with the xml in the skin...


* Wavefrontier T90 with 28E/23E/19E/13E via SCR switches 2 x 2 x 6 user bands
I don't read PM -> if you have something to ask or to report, do it in the forum so others can benefit. I don't take freelance jobs.
Ik lees geen PM -> als je iets te vragen of te melden hebt, doe het op het forum, zodat anderen er ook wat aan hebben.


Re: enigma.py decompilied python file #20 littlesat

  • PLi® Core member
  • 57,444 posts

+708
Excellent

Posted 12 June 2013 - 19:17

I'm not sure... But for listbox e.g. In gmepg we can set a margin to the elements....

WaveFrontier 28.2E | 23.5E | 19.2E | 16E | 13E | 10/9E | 7E | 5E | 1W | 4/5W | 15W



1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users