Author Topic: Bundling an stand alone application  (Read 529 times)

kasa

  • Newbie
  • *
  • Posts: 11
  • Karma: +0/-0
    • View Profile
Bundling an stand alone application
« on: October 12, 2014, 04:46:49 PM »
Hi Tony,

I have a scenario where i need to bundle the application. I understand that in pyxll.cfg - we mention the python path and modules. Can pyxll handle a .exe file name instead of a module name?

If not, the only other way i can think of is to bundle python along with application and let the code remain as .py files.

Please let me know if there is an elegant way to do this.

Thanks,
Kasa.

Tony

  • Administrator
  • Hero Member
  • *****
  • Posts: 544
  • Karma: +12/-1
    • View Profile
Re: Bundling an stand alone application
« Reply #1 on: October 13, 2014, 10:26:24 AM »
Hi Kasa,

you can bundle .py files as a zip file then python can import them. See http://legacy.python.org/dev/peps/pep-0273/

All you need to do is to add the zip file to the pythonpath.

If you are using py2exe then the library.zip file should have everything you need - you could just add that to the pythonpath, and if you put pyxll.xll in the same folder as the python dll it will find it from there.

Best regards,
Tony
« Last Edit: October 13, 2014, 10:54:01 AM by Tony »