Skip to content

Commit

Permalink
Addon Manager: Fix disabling addon
Browse files Browse the repository at this point in the history
  • Loading branch information
chennes committed Sep 9, 2022
1 parent 96cfa1b commit 6347f90
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Mod/AddonManager/Addon.py
Expand Up @@ -521,7 +521,7 @@ def is_disabled(self):
def disable(self):
"""Disable this addon from loading when FreeCAD starts up by creating a stopfile"""

stopfile = os.path.join(mod_directory, self.name, "ADDON_DISABLED")
stopfile = os.path.join(self.mod_directory, self.name, "ADDON_DISABLED")
with open(stopfile, "w", encoding="utf-8") as f:
f.write(
"The existence of this file prevents FreeCAD from loading this Addon. To re-enable, delete the file."
Expand Down

0 comments on commit 6347f90

Please sign in to comment.