[lang-ref] ソースファイル名(パス)を取得 ( python )
def test_get_source_directory_path():
# os.path.dirname(__file__)
expected = os.path.dirname(__file__)
actual = str(Path(__file__).parent)
assert expected == actual
def test_get_source_directory_path():
# os.path.dirname(__file__)
expected = os.path.dirname(__file__)
actual = str(Path(__file__).parent)
assert expected == actual