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()