mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-08-02 07:23:41 +02:00
Introduce the UNINSTALLED_GLIB_SRCDIR environment variable
This makes it possible to avoid setting PYTHONPATH in Makefile.am files. https://bugzilla.gnome.org/show_bug.cgi?id=650763
This commit is contained in:
committed by
Colin Walters
parent
5391aae009
commit
cd0cd95078
13
gio/gdbus-2.0/codegen/gdbus-codegen.in
Executable file → Normal file
13
gio/gdbus-2.0/codegen/gdbus-codegen.in
Executable file → Normal file
@@ -25,9 +25,14 @@
|
||||
import os
|
||||
import sys
|
||||
|
||||
path = os.path.join('@libdir@', 'gdbus-2.0', 'codegen')
|
||||
sys.path.insert(0, path)
|
||||
srcdir = os.getenv('UNINSTALLED_GLIB_SRCDIR', None)
|
||||
|
||||
from codegen_main import codegen_main
|
||||
if srcdir is not None:
|
||||
path = os.path.join(srcdir, 'gio', 'gdbus-2.0')
|
||||
else:
|
||||
path = os.path.join('@libdir@', 'gdbus-2.0')
|
||||
|
||||
sys.exit(codegen_main())
|
||||
sys.path.insert(0, os.path.abspath(path))
|
||||
from codegen import codegen_main
|
||||
|
||||
sys.exit(codegen_main.codegen_main())
|
||||
|
Reference in New Issue
Block a user