répertoire de script de référence Python
>>> import os
>>> print(os.path.dirname(os.path.realpath(__file__)))
C:\File\Location # Does not contain filename
Exypnos
>>> import os
>>> print(os.path.dirname(os.path.realpath(__file__)))
C:\File\Location # Does not contain filename
import os
print(os.path.abspath(''))
import os
print(os.path.abspath(''))