2019-03-10

Python - Get the path of the grandparent directory of the current script

from os import path

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

No comments:

Post a Comment