Work with files / Basic operations

import os

path1 = os.getcwd()
or
path2 = os.path.dirname(
    os.path.realpath(__file__))

print(path1)
print(path2)