There is this terminal command in which if I run someCommand my_file.txt, it works correctly..
When I tried to incorporate it into a python script as follows:
import os
os.system('someCommand /user_data/some_file.txt')
I was prompted with the following error:
Traceback (most recent call last):
File "/server/scripts/someCommand", line 6, in <module>
import os
ImportError: No module named os
Tried using subprocess but same error persists. How can I rectify this and why is it that os module error occurs?
In my python file, os is working for sure..