mirror of https://github.com/mingrammer/diagrams
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
20 lines
533 B
20 lines
533 B
5 years ago
|
import os
|
||
|
from pathlib import Path
|
||
|
|
||
|
import config as cfg
|
||
|
|
||
|
|
||
|
def app_root_dir(pvd: str) -> str:
|
||
|
basedir = Path(os.path.abspath(os.path.dirname(__file__)))
|
||
|
return os.path.join(basedir.parent, cfg.DIR_APP_ROOT, pvd)
|
||
|
|
||
|
|
||
|
def resource_dir(pvd: str) -> str:
|
||
|
basedir = Path(os.path.abspath(os.path.dirname(__file__)))
|
||
|
return os.path.join(basedir.parent, cfg.DIR_RESOURCE, pvd)
|
||
|
|
||
|
|
||
|
def template_dir() -> str:
|
||
|
basedir = Path(os.path.abspath(os.path.dirname(__file__)))
|
||
|
return os.path.join(basedir.parent, cfg.DIR_TEMPLATE)
|