gobject-introspection r278 - in trunk: . tools
- From: johan svn gnome org
- To: svn-commits-list gnome org
- Subject: gobject-introspection r278 - in trunk: . tools
- Date: Sat, 31 May 2008 21:04:59 +0000 (UTC)
Author: johan
Date: Sat May 31 21:04:59 2008
New Revision: 278
URL: http://svn.gnome.org/viewvc/gobject-introspection?rev=278&view=rev
Log:
2008-05-31 Johan Dahlin <jdahlin async com br>
* tools/g-ir-scanner:
* tests/parser/Makefile.am:
Update sys.path before running the parser so we don't have
to setup PYTHONPATH ourselves.
Modified:
trunk/ChangeLog
trunk/tools/g-ir-scanner
Modified: trunk/tools/g-ir-scanner
==============================================================================
--- trunk/tools/g-ir-scanner (original)
+++ trunk/tools/g-ir-scanner Sat May 31 21:04:59 2008
@@ -24,6 +24,16 @@
import os
import sys
+# This only works on unix systems
+currentdir = os.path.dirname(os.path.abspath(sys.argv[0]))
+basedir = os.path.abspath(os.path.join(currentdir, '..'))
+if os.path.exists(os.path.join(basedir, '.svn')):
+ path = basedir
+else:
+ path = os.path.join(basedir, 'lib', 'python%d.%d' % sys.version_info[:2],
+ 'site-packages')
+sys.path.insert(0, path)
+
from giscanner.glibtransformer import GLibTransformer
from giscanner.sourcescanner import SourceScanner
from giscanner.transformer import Transformer
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]