Coding/Python Matlab

python subprocess, time delay, current working directory

smores 2022. 9. 25. 16:50

import subprocess, time
import os

cd = os.getcwd()
print(cd)

jpg = 'scene4.jpg'

# p = subprocess.Popen(["MSPaint", jpg])
p = subprocess.Popen(["MSPaint", ''])
time.sleep(2)
# input()
p.kill()