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

10 lines
224 B
Python

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