[CalendarServer-changes] [12235] twext/trunk/bin/_twext_preamble.py

source_changes at macosforge.org source_changes at macosforge.org
Wed Mar 12 11:21:17 PDT 2014


Revision: 12235
          http://trac.calendarserver.org//changeset/12235
Author:   wsanchez at apple.com
Date:     2014-01-03 14:07:08 -0800 (Fri, 03 Jan 2014)
Log Message:
-----------
Add deps to path.

Modified Paths:
--------------
    twext/trunk/bin/_twext_preamble.py

Modified: twext/trunk/bin/_twext_preamble.py
===================================================================
--- twext/trunk/bin/_twext_preamble.py	2014-01-03 22:06:54 UTC (rev 12234)
+++ twext/trunk/bin/_twext_preamble.py	2014-01-03 22:07:08 UTC (rev 12235)
@@ -24,13 +24,17 @@
 """
 
 import sys
-from os.path import dirname
+from os.path import dirname, join as joinpath
+from site import addsitedir
 
 bindir = dirname(__file__)
 srcroot = dirname(bindir)
+depslib = joinpath(srcroot, ".develop", "lib")
 
+addsitedir(depslib)
 sys.path.insert(0, srcroot)
 
-# print("PYTHONPATH:")
-# for path in sys.path:
-#     print("  ", path)
+if False:
+    print("PYTHONPATH:")
+    for path in sys.path:
+        print("  ", path)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/calendarserver-changes/attachments/20140312/9e580558/attachment.html>


More information about the calendarserver-changes mailing list