diff --git a/komrade/app/screens/map.py b/komrade/app/screens/map.py index 980b978..00b8747 100644 --- a/komrade/app/screens/map.py +++ b/komrade/app/screens/map.py @@ -138,7 +138,8 @@ class MapWidget(MDDialog2): # buf = io.BytesIO() # plt.ion() - odir=f'/home/ryan/komrade/data/maps/' + from komrade.constants import PATH_MAPS + odir=PATH_MAPS if not os.path.exists(odir): os.makedirs(odir) ofn=os.path.join(odir,f't_{len(self.points)}.png') # plt.gca().invert_yaxis() diff --git a/komrade/constants.py b/komrade/constants.py index b4ded90..5b7ab30 100644 --- a/komrade/constants.py +++ b/komrade/constants.py @@ -29,7 +29,7 @@ PATH_QRCODES = os.path.join(PATH_KOMRADE,'contacts') PATH_SECRETS = PATH_SUPER_SECRETS = os.path.join(PATH_USER_HOME,'.secrets') PATH_SUPER_SECRET_OP_KEY = os.path.join(PATH_SUPER_SECRETS,'.komrade.op.key') - +PATH_MAPS = os.path.join(PATH_KOMRADE,'maps') PATH_LOG_OUTPUT = os.path.join(PATH_KOMRADE,'logs') diff --git a/script/install b/script/install index bf35e3d..4973079 100644 --- a/script/install +++ b/script/install @@ -231,7 +231,7 @@ komrade-app [GUI interface -- alpha] If that doesn't work, try running this series of comands: source $path_conda/etc/profile.d/conda.sh -export PATH=\"$path_conda/bin:$PATH\" +export PATH=\"$path_conda/bin:\$PATH\" conda activate $path_venv python -m pip install -r $path_repo/requirements.txt python $path_repo/komrade/app/main.py