joealcorn / xbox

Python wrapper around Microsoft's undocumented Xbox one APIs
http://xbox.readthedocs.org/en/latest/
MIT License
78 stars 19 forks source link

py2exe compatibility #9

Open BAG-OF-CHIPS-XX opened 6 years ago

BAG-OF-CHIPS-XX commented 6 years ago

I made a simple GUI to download all my clips to a folder and struggled for days to package it as a .exe file. I finally found the problem: consider renaming the 'resource.py' to something else. I did 'resource2.py', and updated line 2 in 'init.py' to 'import .resource2'.

I believe the problem is that python already has a 'resource' module installed and py2exe was getting confused since xbox was referencing its own version of 'resource'.

hope all that makes sense.