On 30/09/13 11:13, Paul Colomiets wrote: > [...] > Will check. (I'm usually work in Linux, so rebooting to OS X takes time)
OK, thanks. >> script_home is really useful, I'd like it to work properly in most cases. >> > > Where should it point to? According to the docs py2app points to > "Contents/Resources" dir (does py2app puts *.py files there?). But for > cx_Freeze it's useless. But it would be strange that py2app and > cx_Freeze use different dirs on the same platform. Also according to > the docs: > > Get the directory containing the program entry module. > > And this "dir" is "Contents/MacOS/library.zip". Is it consistent to > strip the "library.zip" prefix? I.e. this is *script* home not a > *data* home, right? Well I'd expect, whatever the system is, to have a binary (with all packaged inside) that will be probably unpacked somewhere. script_home should return the directory where that binary is (not the unpacked stuff!), and then you'll have there a "lib" directory with the libraries. When I'm back home today I'll play a little bit with cx_Freeze because I assume the behavioue should be consistent in all the supported platforms. So what I want is: - detect if we're running a cx_Freeze app - find where the binary is run With that in place I think we'll get to the local libs with no problem. Regards, Juan -- You received this message because you are subscribed to the Google Groups "pyglet-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/pyglet-users. For more options, visit https://groups.google.com/groups/opt_out.
