Updated 2 file paths to make the code work with AppImage

As advised in this forum post:
https://forum.freecad.org/viewtopic.php?p=788556#p788556
This commit is contained in:
Roy-043
2024-10-24 10:47:35 +02:00
committed by Yorik van Havre
parent bb49d78e24
commit a4bfafe7ad

View File

@@ -613,8 +613,8 @@ def _create_objects(doc=None,
doc.recompute()
def create_test_file(font_file=App.getHomePath()+"data/Mod/TechDraw/Resources/fonts/osifont-lgpl3fe.ttf",
hatch_file=App.getHomePath()+"data/Mod/TechDraw/PAT/FCPAT.pat",
def create_test_file(font_file=App.getResourceDir()+"Mod/TechDraw/Resources/fonts/osifont-lgpl3fe.ttf",
hatch_file=App.getResourceDir()+"Mod/TechDraw/PAT/FCPAT.pat",
hatch_name="Horizontal5"):
"""Create a complete test file of Draft objects.