hyperboria/nexus/summa/installer/scripts/common.py

10 lines
224 B
Python
Raw Normal View History

import os
def resolve_path(filepath):
if os.path.isabs(filepath):
return filepath
cwd = os.environ.get('BUILD_WORKING_DIRECTORY', os.getcwd())
filepath = os.path.join(cwd, filepath)
return filepath