My python script freezes after running os.system()
. The code looks like something below;
command_line = 'java -jar "backup.jar" test'
os.system(command_line)
# python script freezes at this point. Cannot move on to execute code below
For some reason, I suddenly encounter this problem today. No problem in the past. There was no error message. No hints on what's the problem. I did an update to latest Windows 10 package. Not sure if this is the cause.
If this problem can't be fixed, are there alternatives to os.system() to run a command such that python script doesn't freeze?
I am using python 3.8 on anaconda.