Grigoriy Petukhov avatar Grigoriy Petukhov committed d2322be

Change method of changing sys.path in common.system module

Comments (0)

Files changed (3)

     if relpath:
         ROOT = os.path.join(ROOT, relpath)
     os.chdir(ROOT)
-    sys.path.append(ROOT)
+    sys.path.insert(0, ROOT)
     os.environ['DJANGO_SETTINGS_MODULE'] = module
 
     from django.conf import settings
 PARENT = os.path.dirname(ROOT)
 
 # Import version from setup.py script
-sys.path.insert(0, PARENT)
-from setup import VERSION
+#sys.path.insert(0, PARENT)
+#from setup import VERSION
 
 # Setup simple django project for correct importing the modules by autodoc extension
 sys.path.insert(0, ROOT)
 # built documents.
 #
 # The short X.Y version.
-version = VERSION
+version = '0.0'#VERSION
 # The full version, including alpha/beta/rc tags.
-release = VERSION
+release = '0.0'#VERSION
 
 # The language for content autogenerated by Sphinx. Refer to documentation
 # for a list of supported languages.
 setup(
     name = 'django-common',
     description = 'A number of useful django shortcuts and helpers',
-    version = '0.1.48',
+    version = '0.1.49',
     author = 'Grigoriy Petukhov',
     author_email = 'lorien@lorien.name',
     url = 'http://bitbucket.org/lorien/django-common/',
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.