How can I write a script in Windows that runs the following command?
autoflake -i -r --remove-all-unused-imports %file_directory%
My script looks like this:
file_directory = input("Enter directory name to run autoflake: ")
def autoflake_run():
try:
# I would like to run the command here.
except:
print("Path file error. Please make sure directory exists.")
autoflake_run()