Skip to content

Commit

Permalink
Annnnd. . . One more fix to the same code.
Browse files Browse the repository at this point in the history
  • Loading branch information
RTimothyEdwards committed Nov 20, 2024
1 parent 89313e1 commit 4a79634
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions common/foundry_install.py
Original file line number Diff line number Diff line change
Expand Up @@ -787,11 +787,11 @@ def tfilter(targetroot, filterscript, ef_format=False, outfile=[]):
magic_startupfile = glob.glob(magic_techdir + '*.magicrc')
if magic_startupfile:
# NOTE: glob.glob() always returns a list.
pdkpathname = os.path.splitext(magic_startupfile[0])[0]
if pdkpathname != pdkname:
pdktestname = os.path.splitext(os.path.split(magic_startupfile[0])[1])[0]
if pdktestname != pdkname:
print('Directory path name is not the same as the tech name')
print('Changing the tech name from ' + pdkname + ' to ' + pdkpathname)
pdkname = pdkpathname
print('Changing the tech name from ' + pdkname + ' to ' + pdktestname)
pdkname = pdktestname
else:
print('Found magic startup script at ' + magic_startupfile)
else:
Expand Down

0 comments on commit 4a79634

Please sign in to comment.