Skip to content

armgit / wger

Public Imported from GitHub
0

Self hosted FLOSS fitness/workout, nutrition and weight tracker

No need to change working directoty

Roland Geider58d3363ebdcd
diff --git a/wger/settings_global.py b/wger/settings_global.py
index ea5b52119..74579997c 100644
--- a/wger/settings_global.py
+++ b/wger/settings_global.py
@@ -331,9 +331,9 @@ COMPRESS_ROOT = STATIC_ROOT
# BOWER binary
if sys.platform.startswith('win32'):
- BOWER_PATH = os.path.join('node_modules', '.bin', 'bower.cmd')
+ BOWER_PATH = os.path.abspath(os.path.join(BASE_DIR, '..', 'node_modules', '.bin', 'bower.cmd'))
else:
- BOWER_PATH = os.path.join('node_modules', '.bin', 'bower')
+ BOWER_PATH = os.path.abspath(os.path.join(BASE_DIR, '..', 'node_modules', '.bin', 'bower'))
#
# Django Rest Framework
diff --git a/wger/tasks.py b/wger/tasks.py
index 9f33d8c60..f1d501553 100644
--- a/wger/tasks.py
+++ b/wger/tasks.py
@@ -117,7 +117,6 @@ def bootstrap(context,
create_or_reset_admin(context, settings_path=settings_path)
# Download JS libraries with bower
- os.chdir(os.path.dirname(os.path.abspath(__file__)))
context.run('npm install bower')
call_command('bower', 'install')