I am trying to run a script where i post a pic to my instagram account scheduled in a daily base. If i run the script via bash it runs perfectly. But running it through scheduled task it did not work. I changed the file (where the pics are stored) was located in a other folder to the script folder and gave the script the following path: script_directory = os.path.dirname(os.path.abspath(file)) which is obviously the path of the script. But it still doesn`t work please help!!!!