Help: Fix path for off-line documentation

See: https://github.com/FreeCAD/FreeCAD-Help/pull/23
This commit is contained in:
Roy-043
2024-02-05 21:13:59 +01:00
committed by Yorik van Havre
parent 11bbc84b5c
commit d8e9c46e09

View File

@@ -182,8 +182,10 @@ def get_location(page):
elif PREFS.GetBool("optionCustom", False):
location = PREFS.GetString("Location", "")
if not location:
location = os.path.join(FreeCAD.getUserAppDataDir(), "Mod", "Documentation", "wiki")
location += page + "md"
location = os.path.join(
FreeCAD.getUserAppDataDir(), "Mod", "offline-documentation", "FreeCAD-documentation-main", "wiki"
)
location = os.path.join(location, page + ".md")
return location