GNOME Bugzilla – Bug 712398
build: Actually install defs.py
Last modified: 2013-11-17 10:51:11 UTC
Otherwise we fail to set PKGDATADIR, which causes us to fail to load shell.css, which causes us to fail to start. The correct way to do this though, in my opinion, is to *not* pollute the global Python namespace with this application's internals. We don't expect other Python programs to "import gtweak". The way gobject-introspection does this is to install the Python code to $(pkglibdir), and substitute in the wrapper script to add that to sys.path.
Created attachment 259949 [details] [review] build: Actually install defs.py
Hmm, I wonder how this previously worked? Anyway, I take your point about installing stuff in pkglibdir. I will take a look at how gi does it.
Attachment 259949 [details] pushed as e44f95b - build: Actually install defs.py