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

'Coding > Python Matlab' 카테고리의 다른 글

Matlab - bmp_to_data()  (0) 2022.11.12
Python - interpolate 1D & 2D  (0) 2022.11.10
matlab 2 y axes overlaid plots  (0) 2022.09.08
Matlab 과 Python 에서 multidimensional array 차이  (0) 2022.08.27
for... else... (nested loop break out)  (0) 2022.07.26