Skip to content
This repository has been archived by the owner on Feb 27, 2019. It is now read-only.

Commit

Permalink
Gives precedence to app dirs so stdlib modules do not overshadow app …
Browse files Browse the repository at this point in the history
…modules
  • Loading branch information
kumar303 committed Jul 20, 2011
1 parent d389fa6 commit 0b7963e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion funfactory/manage.py
Expand Up @@ -34,7 +34,9 @@ def setup_environ(manage_file, settings=None):
prev_sys_path = list(sys.path)

# Make settings_local importable
sys.path.append(os.getcwd())
sys.path.append(ROOT)
# Give precedence to your app's parent dir, which contains __init__.py
sys.path.append(os.path.abspath(os.path.join(ROOT, os.pardir)))

site.addsitedir(path('apps'))
site.addsitedir(path('lib'))
Expand Down

0 comments on commit 0b7963e

Please sign in to comment.