add script without dep
This commit is contained in:
parent
566e9a5730
commit
891da4f6c9
19
runSimple.py
Normal file
19
runSimple.py
Normal 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)
|
Loading…
Reference in New Issue
Block a user