13 lines
241 B
Python
13 lines
241 B
Python
import os
|
|
|
|
ROOT = os.path.abspath(os.path.dirname(__file__))
|
|
|
|
|
|
def get_file_path(name: str) -> str:
|
|
return os.path.join(ROOT, name)
|
|
|
|
|
|
def read_file_path(name: str) -> str:
|
|
with open(get_file_path(name)) as f:
|
|
return f.read()
|