From bd584e6b13a612e926b654013110e55f8a4734d6 Mon Sep 17 00:00:00 2001 From: leyghisbb Date: Sun, 30 Aug 2020 11:24:22 +0200 Subject: [PATCH] compabilty for linux with line shading extension --- extensions/fablabchemnitz_endurance_line_shading.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/extensions/fablabchemnitz_endurance_line_shading.py b/extensions/fablabchemnitz_endurance_line_shading.py index 08f92b03..5b5bfc6e 100644 --- a/extensions/fablabchemnitz_endurance_line_shading.py +++ b/extensions/fablabchemnitz_endurance_line_shading.py @@ -285,10 +285,11 @@ class LineShading(inkex.Effect): else: w_png = str(round(poinnt_per_min_period*image_w*float(h_png)/max_period/image_h)) id = node.get('id') - cmd = ["inkscape", current_file, "--export-filename="+file, "--actions=export-width:"+w_png+";export-height:"+h_png+";export-background:rgb(255, 255, 255);export-background-opacity:255;export-id:"+id] + cmd = "inkscape " + current_file + " --export-type=\"png\" --export-filename=" + file + " --actions=\"export-width:"+w_png+";export-height:"+h_png+";export-background:rgb(255,255,255);export-background-opacity:255;export-id:"+id+"\"" #inkex.errormsg(cmd) proc = subprocess.Popen(cmd, shell=True, stdout=subprocess.PIPE, stderr=subprocess.PIPE) - #inkex.debug(proc.communicate()) + #inkex.utils.debug(cmd) + #inkex.utils.debug(proc.communicate()) #sys.exit(0) #return_code = proc.wait() #sys.exit(0) @@ -315,4 +316,4 @@ class LineShading(inkex.Effect): if not image_selected_flag: inkex.errormsg("Please select an image") -LineShading().run() \ No newline at end of file +LineShading().run()