Commits

David Wolever  committed 7f1f309

Hacking around an issue in the libs directory.

  • Participants
  • Parent commits f768bab

Comments (0)

Files changed (1)

File libs/__init__.py

+import sys
+import os
+
+# Make sure that this libs directory is in the path, because
+# the libraries will assume that they are at the top level
+# (ie, django_extensions will 'import django_extensions.foo')
+libs_path = os.path.dirname(__file__)
+if libs_path not in sys.path:
+    sys.path.append(libs_path)
+del libs_path