Permalink
Browse files

symlinkmedia command: use absolute path while looking for media folder

  • Loading branch information...
1 parent 55835b6 commit f22115d9a1e7995a68e16f53b6c41853051327cd Maciek Szczesniak committed with stefanfoulis Apr 23, 2010
Showing with 1 addition and 1 deletion.
  1. +1 −1 appmedia/management/commands/symlinkmedia.py
@@ -27,7 +27,7 @@ def handle_noargs(self, **options):
apps = get_apps()
for app in apps:
- app_file = app.__file__
+ app_file = os.path.abspath(app.__file__)
if os.path.splitext(app_file)[0].endswith('/__init__'):
# models are an folder, go one level up
app_file = os.path.dirname(app_file)

0 comments on commit f22115d

Please sign in to comment.