Permalink
Browse files

Added the package path-extender snippet bit to all the __init__.py's …

…in the package; also renamed this branch to actually reflect what's in it.
  • Loading branch information...
1 parent d82c693 commit fff74a1c7f415c0c6082766b3bb73971722d4f20 @fish2000 committed Jul 14, 2012
View
@@ -0,0 +1,3 @@
+# package path-extension snippet.
+from pkgutil import extend_path
+__path__ = extend_path(__path__, __name__)
@@ -2,6 +2,10 @@
from __future__ import print_function
from distutils.cmd import Command
+# package path-extension snippet.
+from pkgutil import extend_path
+__path__ = extend_path(__path__, __name__)
+
class build_js(Command):
user_options = [
@@ -1 +1,5 @@
from urlobject import URLObject
+
+# package path-extension snippet.
+from pkgutil import extend_path
+__path__ = extend_path(__path__, __name__)
@@ -15,7 +15,11 @@
Copyright (c) 2011 Objects In Space And Time, LLC. All rights reserved.
"""
-import os, threading
+# package path-extension snippet.
+from pkgutil import extend_path
+__path__ = extend_path(__path__, __name__)
+
+import threading
from collections import defaultdict
SQ_RUNMODES = {
@@ -0,0 +1,3 @@
+# package path-extension snippet.
+from pkgutil import extend_path
+__path__ = extend_path(__path__, __name__)
@@ -1,6 +1,11 @@
#!/usr/bin/env python
# encoding: utf-8
+# package path-extension snippet.
+from pkgutil import extend_path
+__path__ = extend_path(__path__, __name__)
+
+
def echo_banner():
print u"+++ django-signalqueue by Alexander Bohn -- http://objectsinspaceandtime.com/"
print u""
@@ -117,3 +117,7 @@
SQ_WORKER_PORT = 11201
TEST_RUNNER = 'django_nose.NoseTestSuiteRunner'
+
+# package path-extension snippet.
+from pkgutil import extend_path
+__path__ = extend_path(__path__, __name__)
@@ -0,0 +1,3 @@
+# package path-extension snippet.
+from pkgutil import extend_path
+__path__ = extend_path(__path__, __name__)
@@ -1,4 +1,8 @@
+# package path-extension snippet.
+from pkgutil import extend_path
+__path__ = extend_path(__path__, __name__)
+
import os
from django.core.exceptions import ImproperlyConfigured
from django.conf import settings

0 comments on commit fff74a1

Please sign in to comment.