2019-03-10

Python - Get the path of the directory that holds the current script (not including the current script file name)

from os import path


print path.dirname(
            path.abspath(__file__)
        )

No comments:

Post a Comment