import os # Specify the desired directory path directory_path = "/app" # Change the current directory to the specified path os.chdir(directory_path)