Created
March 23, 2023 07:24
-
-
Save Spyder-0/cd1a60c9f79c622e21b0a9569912850b to your computer and use it in GitHub Desktop.
Change Current Working Directory to Location of File.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import os | |
# Changes Directory to Where the File is Saved. | |
os.chdir(os.path.dirname(os.path.abspath(__file__))) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment