add script without dep

This commit is contained in:
Lurenaud 2023-02-06 11:43:10 +01:00
parent 566e9a5730
commit 891da4f6c9

19
runSimple.py Normal file
View File

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