Self hosted FLOSS fitness/workout, nutrition and weight tracker
added current platform check for correct BOWER_PATH value
Roman Pavlov5308f79232b7
diff --git a/wger/settings_global.py b/wger/settings_global.pyindex 3790a1a32..6ab8f71d8 100644--- a/wger/settings_global.py+++ b/wger/settings_global.py@@ -15,6 +15,7 @@# You should have received a copy of the GNU Affero General Public Licenseimport re+import sys'''This file contains the global settings that don't usually need to be changed.@@ -299,7 +300,10 @@ COMPRESS_ROOT = STATIC_ROOT# BOWER components routeBOWER_COMPONENTS_ROUTE = os.path.join(STATIC_ROOT, 'components')-BOWER_PATH = os.path.join(BASE_DIR, 'node_modules', '.bin', 'bower')+if sys.platform.startswith('win32'):+ BOWER_PATH = os.path.join(BASE_DIR, 'node_modules', '.bin', 'bower.cmd')+else:+ BOWER_PATH = os.path.join(BASE_DIR, 'node_modules', '.bin', 'bower')## Django Rest Framework