Skip to content

Commit

Permalink
Fix error in loading application level sync config
Browse files Browse the repository at this point in the history
  • Loading branch information
nathanw-chartis committed Apr 1, 2022
1 parent f690c96 commit 0c7143a
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/roam/syncing/replication.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import imp
import os

from qgis.PyQt.QtCore import pyqtSignal, QProcess, QObject, QProcessEnvironment
Expand Down Expand Up @@ -43,10 +42,11 @@ def __init__(self, name, project, **kwargs):
self.parser = kwargs.get("parser", None)
self.parsermodule = None
variables = kwargs.get("variables", {})
variables["ROAM_PROJECT_ROOT"] = project.folder
variables["ROAM_PROJECT_DATA"] = project.datafolder()
variables['ROAM_PROJECTS_HOME'] = os.path.abspath(os.path.join(project.folder, ".."))
variables['ROAM_MASTER_DATA_FOLDER'] = os.path.abspath(os.path.join(project.folder, "..", "_data"))
if project:
variables["ROAM_PROJECT_ROOT"] = project.folder
variables["ROAM_PROJECT_DATA"] = project.datafolder()
variables['ROAM_PROJECTS_HOME'] = os.path.abspath(os.path.join(project.folder, ".."))
variables['ROAM_MASTER_DATA_FOLDER'] = os.path.abspath(os.path.join(project.folder, "..", "_data"))
env = QProcessEnvironment.systemEnvironment()
for varname, value in variables.items():
env.insert(varname, str(value))
Expand Down

0 comments on commit 0c7143a

Please sign in to comment.