From 4a79634ac7cff28de923d7129046363052dafc65 Mon Sep 17 00:00:00 2001 From: Tim Edwards Date: Wed, 20 Nov 2024 12:40:58 -0500 Subject: [PATCH] Annnnd. . . One more fix to the same code. --- common/foundry_install.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/common/foundry_install.py b/common/foundry_install.py index 0c3f8229..7d4ed665 100755 --- a/common/foundry_install.py +++ b/common/foundry_install.py @@ -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: