pybank r62 - trunk/bank
- From: johan svn gnome org
- To: svn-commits-list gnome org
- Subject: pybank r62 - trunk/bank
- Date: Wed, 20 Aug 2008 19:35:15 +0000 (UTC)
Author: johan
Date: Wed Aug 20 19:35:15 2008
New Revision: 62
URL: http://svn.gnome.org/viewvc/pybank?rev=62&view=rev
Log:
Use XDG_DATA_DIRS instead
Modified:
trunk/bank/importer.py
Modified: trunk/bank/importer.py
==============================================================================
--- trunk/bank/importer.py (original)
+++ trunk/bank/importer.py Wed Aug 20 19:35:15 2008
@@ -27,8 +27,9 @@
@staticmethod
def find_module(name, path):
- for path in os.environ.get("GIREPO_PATH", ".").split(":"):
- filename = os.path.join(path, name + '.typelib')
+ for path in os.environ.get("XDG_DATA_DIRS", "/usr/share").split(":"):
+ full = os.path.join(path, 'gitypelibs')
+ filename = os.path.join(full, name + '.typelib')
if os.path.exists(filename):
return DynamicImporter(name, filename)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]