[Checkins] SVN: z3c.relationfield/t Do not use __file__; this breaks if you use a zc.buildout-managed interpreter on systems without setuptools installed globally

Wichert Akkerman wichert at wiggy.net
Wed Apr 22 10:00:52 EDT 2009


Log message for revision 99375:
  Do not use __file__; this breaks if you use a zc.buildout-managed interpreter on systems without setuptools installed globally

Changed:
  U   z3c.relationfield/tags/0.4.2/setup.py
  U   z3c.relationfield/trunk/setup.py

-=-
Modified: z3c.relationfield/tags/0.4.2/setup.py
===================================================================
--- z3c.relationfield/tags/0.4.2/setup.py	2009-04-22 13:58:21 UTC (rev 99374)
+++ z3c.relationfield/tags/0.4.2/setup.py	2009-04-22 14:00:47 UTC (rev 99375)
@@ -2,7 +2,7 @@
 import sys, os
 
 def read(*rnames):
-    return open(os.path.join(os.path.dirname(__file__), *rnames)).read()
+    return open(os.path.join(*rnames)).read()
 
 long_description = (
     read('src', 'z3c', 'relationfield', 'README.txt')

Modified: z3c.relationfield/trunk/setup.py
===================================================================
--- z3c.relationfield/trunk/setup.py	2009-04-22 13:58:21 UTC (rev 99374)
+++ z3c.relationfield/trunk/setup.py	2009-04-22 14:00:47 UTC (rev 99375)
@@ -2,7 +2,7 @@
 import sys, os
 
 def read(*rnames):
-    return open(os.path.join(os.path.dirname(__file__), *rnames)).read()
+    return open(os.path.join(*rnames)).read()
 
 long_description = (
     read('src', 'z3c', 'relationfield', 'README.txt')



More information about the Checkins mailing list