I have the following Python script:
#!/usr/bin/python
import glob, os
os.chdir("/data")
for file in glob.glob("*.gz"):
print(file)
When I run this script I get error:
Traceback (most recent call last):
File "python.py", line 3, in <module>
os.chdir("/data")