Giter VIP home page Giter VIP logo

Comments (3)

mogui avatar mogui commented on September 28, 2024

This problem doesn't deals with datadir being not included (also it is not but it is easy solved)
The question is that here in the config dirs are hard coded they MUST be dynamic and relative to the app !!

regarding OS X I know the right way to do it, py2app gives an environment variable in os.environ['RESOURCEPATH'] that is the full path to the app bundle from whatever place it is launched

I don't know (and can't test) how to do the same with py2exe
ask me if I wasn't exhaustive :P

[EDIT] I correct myself :P not hard coded but relative to config.py script that willi be in a zipped folder inside lib ecc... in the app bundle

from apaf.

mmaker avatar mmaker commented on September 28, 2024

That's right. Probably the only solution is to create a function which looks on /etc, then on 'RESOURCEPATH', and finally on the relative path itself.
Thanks.

from apaf.

fpietrosanti avatar fpietrosanti commented on September 28, 2024

Can this ticket be closed?

from apaf.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.