[CalendarServer-changes] [1992] CalendarServer/branches/release/CalendarServer-1.0-dev/setup.py

source_changes at macosforge.org source_changes at macosforge.org
Fri Oct 26 13:03:28 PDT 2007


Revision: 1992
          http://trac.macosforge.org/projects/calendarserver/changeset/1992
Author:   wsanchez at apple.com
Date:     2007-10-26 13:03:27 -0700 (Fri, 26 Oct 2007)

Log Message:
-----------
Deal with "python setup.py"

Modified Paths:
--------------
    CalendarServer/branches/release/CalendarServer-1.0-dev/setup.py

Modified: CalendarServer/branches/release/CalendarServer-1.0-dev/setup.py
===================================================================
--- CalendarServer/branches/release/CalendarServer-1.0-dev/setup.py	2007-10-26 20:03:08 UTC (rev 1991)
+++ CalendarServer/branches/release/CalendarServer-1.0-dev/setup.py	2007-10-26 20:03:27 UTC (rev 1992)
@@ -53,7 +53,9 @@
             if __file__.startswith(os.path.sep):
                 project_name = os.path.basename(os.path.dirname(__file__))
             else:
-                os.chdir(os.path.dirname(__file__))
+                wd = os.path.dirname(__file__)
+                if wd:
+                    os.chdir(wd)
                 project_name = os.path.basename(os.getcwd())
 
             prefix = "CalendarServer-"

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/calendarserver-changes/attachments/20071026/291a4ac1/attachment-0001.html


More information about the calendarserver-changes mailing list