From e86e1a05042aefd8fc6ca3df41da2ab1dcb08515 Mon Sep 17 00:00:00 2001 From: leyghisbb Date: Sun, 30 Aug 2020 11:31:34 +0200 Subject: [PATCH] Added some workaround for hatchfill extension and write permissions --- extensions/fablabchemnitz_hatchfill.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/extensions/fablabchemnitz_hatchfill.py b/extensions/fablabchemnitz_hatchfill.py index 6e35c274..0bf3f4fb 100644 --- a/extensions/fablabchemnitz_hatchfill.py +++ b/extensions/fablabchemnitz_hatchfill.py @@ -2165,12 +2165,14 @@ def inkscape_run_debug(): import os import datetime import shutil + import tempfile # If we aren't calling this from our own script. if os.environ.get("DEBUG_RECURSION", "0") == "1": return script_path = os.path.abspath(sys.argv[0]) - debug_dir = os.path.join(os.path.dirname(script_path), "debug") + #debug_dir = os.path.join(os.path.dirname(script_path), "debug") + debug_dir = tempfile.gettempdir() os.makedirs(debug_dir, exist_ok=True) base_name, _ = os.path.splitext(os.path.basename(script_path)) @@ -2248,4 +2250,4 @@ def inkscape_run_debug(): if __name__ == "__main__": # Debug script when called from Inkscape inkscape_run_debug() - HatchFill().run() \ No newline at end of file + HatchFill().run()