how to check if something a file is open in python with os.system code example
Example: how to check whether file exists in python
import os.path
if os.path.isfile('filename.txt'):
print ("File exist")
else:
print ("File not exist")
import os.path
if os.path.isfile('filename.txt'):
print ("File exist")
else:
print ("File not exist")