How do I get the full path of the current file's directory? - Stack ...

文章推薦指數: 80 %
投票人數:10人

Python 3. For the directory of the script being run: import pathlib pathlib.Path(__file__).parent.absolute(). For the current working directory: Howarewedoing?PleasehelpusimproveStackOverflow.Takeourshortsurvey JoinStackOv



請為這篇文章評分?