[CalendarServer-changes] [6776] CalendarServer/branches/users/glyph/dal/calendarserver/tap/caldav.py
source_changes at macosforge.org
source_changes at macosforge.org
Wed Jan 19 12:59:16 PST 2011
Revision: 6776
http://trac.macosforge.org/projects/calendarserver/changeset/6776
Author: glyph at apple.com
Date: 2011-01-19 12:59:16 -0800 (Wed, 19 Jan 2011)
Log Message:
-----------
FilePath().parent() is easier than os.path.dirname
Modified Paths:
--------------
CalendarServer/branches/users/glyph/dal/calendarserver/tap/caldav.py
Modified: CalendarServer/branches/users/glyph/dal/calendarserver/tap/caldav.py
===================================================================
--- CalendarServer/branches/users/glyph/dal/calendarserver/tap/caldav.py 2011-01-19 20:59:05 UTC (rev 6775)
+++ CalendarServer/branches/users/glyph/dal/calendarserver/tap/caldav.py 2011-01-19 20:59:16 UTC (rev 6776)
@@ -96,7 +96,9 @@
from calendarserver.version import version
version
except ImportError:
- sys.path.insert(0, os.path.join(os.path.dirname(os.path.dirname(os.path.dirname(__file__))), "support"))
+ from twisted.python.modules import getModule
+ sys.path.insert(
+ 0, getModule(__name__).pathEntry.filePath.child("support").path)
from version import version as getVersion
version = "%s (%s*)" % getVersion()
twext.web2.server.VERSION = "CalendarServer/%s %s" % (
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/calendarserver-changes/attachments/20110119/ba40574b/attachment-0001.html>
More information about the calendarserver-changes
mailing list