Skip to content

Commit

Permalink
fix: case where path got deleted
Browse files Browse the repository at this point in the history
  • Loading branch information
paulmueller committed Oct 18, 2024
1 parent ab93d91 commit 3e559ad
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion shapeout2/gui/preferences.py
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ def reload_lme4(self, install=False):
# location where we can install lme4 and set the environment variable
# R_LIBS_USER accordingly.
r_libs_user = self.settings.value("lme4/r libs user", None)
if r_libs_user is None:
if r_libs_user is None or not pathlib.Path(r_libs_user).exists():
r_libs_user = pathlib.Path(
QStandardPaths.writableLocation(
QStandardPaths.AppLocalDataLocation)) / "r-libs"
Expand Down

0 comments on commit 3e559ad

Please sign in to comment.