Im kinda stuck. i want to "ack" in a directory and print the list of the ack in the terminal. but when i try to run my script it only ack's in the current directory.
im using tkinter to create the tkFileDialog.askdirectory()
however, im still stuck..
is there someone that can help out? or point out what im doing wrong? the code i wrote is below
foldername = tkFileDialog.askdirectory()
if os.path.isdir(foldername):
print "\033[1m" + foldername + "\033[0m"
os.system("ack -i 'password' --ignore-file=is:easyack.py")
else: print "\033[1m" + "No folder chosen" + "\033[0m"