how to get directory path
i am asking how to get the directory path because when i have this in my code 'os.chdir('mainprofile.json')' i get this error
'NotADirectoryError: [Errno 20] Not a directory: 'mainprofile.json''
The directory path would be
/home/runner/<project name>/<file path>
Click the check if this helped
Need more help? just reply to this