From 891da4f6c99817dd39b9885daf208b6e0cfca051 Mon Sep 17 00:00:00 2001 From: Lurenaud Date: Mon, 6 Feb 2023 11:43:10 +0100 Subject: [PATCH] add script without dep --- runSimple.py | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 runSimple.py diff --git a/runSimple.py b/runSimple.py new file mode 100644 index 0000000..0295e53 --- /dev/null +++ b/runSimple.py @@ -0,0 +1,19 @@ +# example: .\run.py path\Part1 +import os +import sys +import pathlib +import subprocess + +# folder input +if(sys.argv[1]): + pass + +files = sys.argv[1:] # take files given in input +currentPath = str(pathlib.Path().resolve()) + +for i in files: + input = str(i) + commandstep = "PowerShell -NoProfile -ExecutionPolicy Bypass -File " + currentPath + "\export-step.ps1 " + input + commandPdfDxf = "PowerShell -NoProfile -ExecutionPolicy Bypass -File " + currentPath + "\export-pdf-dxf.ps1 " + input + subprocess.run(commandstep, capture_output=True) + subprocess.run(commandPdfDxf, capture_output=True)