Modified a number of sky130 custom scripts that were all based on
the same code and all generated a file called "temp" during
processing, which was causing issues with files getting mixed up
when using multithreading (note that the previous commit, which
was an attempt to resolve the file mixup error, was a total red
herring and had nothing to do with the issue). All of the scripts
now append "_temp" to the root name of the original input file
being modified, instead of always naming a file "temp". This
should resolve the file mixup issue completely.
diff --git a/sky130/custom/scripts/xyce_hack2.py b/sky130/custom/scripts/xyce_hack2.py
index 5d8f1a0..9308dad 100755
--- a/sky130/custom/scripts/xyce_hack2.py
+++ b/sky130/custom/scripts/xyce_hack2.py
@@ -24,7 +24,9 @@
infile_name = sys.argv[1]
filepath = os.path.split(infile_name)[0]
- outfile_name = os.path.join(filepath, 'temp')
+ filename = os.path.split(infile_name)[1]
+ fileroot = os.path.splitext(filename)[0]
+ outfile_name = os.path.join(filepath, fileroot + '_temp')
infile = open(infile_name, 'r')
outfile = open(outfile_name, 'w')