Change magic to use OPENRAM_MAGICRC if defined.

This commit is contained in:
mrg 2021-05-18 13:27:11 -07:00
parent 3abebe4068
commit 191b382171
1 changed files with 4 additions and 1 deletions

View File

@ -71,7 +71,10 @@ def write_drc_script(cell_name, gds_name, extract, final_verification, output_pa
global OPTS
# Copy .magicrc file into the output directory
magic_file = os.environ.get('OPENRAM_MAGICRC', None)
if not magic_file:
magic_file = OPTS.openram_tech + "tech/.magicrc"
if os.path.exists(magic_file):
shutil.copy(magic_file, output_path)
else: