dabo Commit
Revision 5554
Date: 2009-12-16 07:17:58 -0800 (Wed, 16 Dec 2009)
Author: Paul
Trac: http://trac.dabodev.com/changeset/5554
Changed:
U trunk/setup.py
Log:
Fixed setup.py to work with pip, per Carl Karsten.
Diff:
Modified: trunk/setup.py
===================================================================
--- trunk/setup.py 2009-12-15 22:15:59 UTC (rev 5553)
+++ trunk/setup.py 2009-12-16 15:17:58 UTC (rev 5554)
@@ -7,9 +7,10 @@
from dabo.__version__ import version
daboVersion = version["version"]
+setupDir = os.path.dirname(__file__)
# List the paths under dabo/icon/themes:
-iconDir = os.path.join("dabo", "icons", "themes")
+iconDir = os.path.join(setupDir, "dabo", "icons", "themes")
iconDirs = {}
def getIconSubDir(arg, dirname, fnames):
if ".svn" not in dirname and "cards" not in dirname.lower() and
dirname[-1] != "\\":
@@ -21,7 +22,7 @@
os.path.walk(iconDir, getIconSubDir, iconDir)
# locale dirs:
-localeDir = os.path.join("dabo", "locale")
+localeDir = os.path.join(setupDir, "dabo", "locale")
localeDirs = []
def getLocaleDirs(arg, dirname, fnames):
if ".svn" not in dirname and dirname[-1] != "\\":
_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-dev
Searchable Archives: http://leafe.com/archives/search/dabo-dev
This message:
http://leafe.com/archives/byMID/[email protected]