I was trying to write a script using Python which used an open source pen-testing tool called PRET which I got from Github. I am using PyCharm for this.
My code was:
import os
def test():
os.system('cd PRET')
os.system('python2 pret.py')
test()
while doing that, I encountered this error:
sh: line 0: cd: PRET: No such file or directory /System/Library/Frameworks/Python.framework/Versions/2.7/Resources/Python.app/Contents/MacOS/Python: can't open file 'pret.py': [Errno 2] No such file or directory