You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
can we do this better?
The only constraint we have is that a driver file HAS be run from within the build directory.
# set working directory to where we call this file fromworkDirFullPath=os.path.realpath(".")
print("workingDir =", workDirFullPath)
# ensure this is NEVER called directly from the tutorials repo# because we want to this to be called from within the build# directory of the tutorials or any other place# except the tutorials source.ifis_git_repo(workDirFullPath):
print("you cannot run this script from the tutorials repo!")
sys.exit(23)
# find full path to the top-level tutorials repoptutRepoFullPath=str(os.path.split(os.path.dirname(__file__))[0])
print("PTUT repo =", ptutRepoFullPath)
ptutRepoEndToEndFullPath=ptutRepoFullPath+'/end-to-end-roms'# read the full workflow dicwfDic=read_workflow_yaml_file(workDirFullPath+'/'+wfFile)
assert_valid_and_supported_problem(wfDic, ptutRepoEndToEndFullPath)
problemName=find_problem_name_from_wf_dic(wfDic)
# import customizations from target problem# we can do this safely because we already asserted customization existsmoduleName='customizations_'+problemNamesys.path.append(os.path.realpath(ptutRepoEndToEndFullPath+'/'+moduleName))
print("Loading customizations from {}".format(moduleName))
customModule=importlib.import_module(moduleName)
The text was updated successfully, but these errors were encountered:
can we do this better?
The only constraint we have is that a driver file HAS be run from within the build directory.
The text was updated successfully, but these errors were encountered: