Removing the :: from ::env because I normally don't like to force
the scope of commands in Tcl, which causes problems if you try to
rename the command. Although its use here is probably harmless,
I find the notation cumbersome.
diff --git a/sky130/magic/sky130.magicrc b/sky130/magic/sky130.magicrc
index 22e1faa..e0cf60a 100644
--- a/sky130/magic/sky130.magicrc
+++ b/sky130/magic/sky130.magicrc
@@ -16,7 +16,7 @@
drc euclidean on
# Allow override of PDK path from environment variable PDKPATH
-if {[catch {set PDKPATH $::env(PDKPATH)}]} {
+if {[catch {set PDKPATH $env(PDKPATH)}]} {
set PDKPATH "STAGING_PATH/TECHNAME"
}
@@ -44,7 +44,7 @@
# Allow override of type of magic library views used, "mag" or "maglef",
# from environment variable MAGTYPE
-if {[catch {set MAGTYPE $::env(MAGTYPE)}]} {
+if {[catch {set MAGTYPE $env(MAGTYPE)}]} {
set MAGTYPE maglef
}