Try to get the location of the sync folder from the OPENSPACE_SYNC environment variable first, before using the ${BASE}/sync

Update SGCT repository
This commit is contained in:
Alexander Bock
2020-11-16 10:43:08 +01:00
parent b4951d6607
commit ef081d27aa
3 changed files with 7 additions and 3 deletions

View File

@@ -95,7 +95,11 @@ Paths = {
PROFILES = "${DATA}/profiles",
FONTS = "${DATA}/fonts",
TASKS = "${DATA}/tasks",
SYNC = "${BASE}/sync",
-- If the the 'OPENSPACE_SYNC' environment variable is defined on the system, use that
-- value. Otherwise, fall back to the ${BASE}/sync folder instead. This allows a
-- reuse of the sync folder between multiple OpenSpace installations by simply setting
-- that environment variable
SYNC = os.getenv("OPENSPACE_SYNC") or "${BASE}/sync2",
SCREENSHOTS = "${BASE}/screenshots",
WEB = "${DATA}/web",
RECORDINGS = "${BASE}/recordings",