[CalendarServer-changes] [12233] twext/trunk/setup.py

source_changes at macosforge.org source_changes at macosforge.org
Wed Mar 12 11:22:10 PDT 2014


Revision: 12233
          http://trac.calendarserver.org//changeset/12233
Author:   wsanchez at apple.com
Date:     2014-01-03 13:38:46 -0800 (Fri, 03 Jan 2014)
Log Message:
-----------
Don't depend on cwd for computing the path to the version file.

Modified Paths:
--------------
    twext/trunk/setup.py

Modified: twext/trunk/setup.py
===================================================================
--- twext/trunk/setup.py	2014-01-03 20:06:54 UTC (rev 12232)
+++ twext/trunk/setup.py	2014-01-03 21:38:46 UTC (rev 12233)
@@ -140,7 +140,8 @@
 def doSetup():
     # Write version file
     version_string = version()
-    version_file = file(joinpath("twext", "version.py"), "w")
+    version_filename = joinpath(dirname(__file__), "twext", "version.py")
+    version_file = file(version_filename, "w")
     try:
         version_file.write(
             'version = "{0}"\n\n'.format(version_string)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/calendarserver-changes/attachments/20140312/5708d3cf/attachment.html>


More information about the calendarserver-changes mailing list