from pathlib import Path # pathlib is recommended
|
|
|
|
repofile = Path('../repo_file.txt') # current working directory is same as current file.
|
|
with repofile.open() as f:
|
|
print(f.readline())
|