if {[info exists ::env(PDK_ROOT)]} {
  if {[info exists ::env(PDK)]} {
    set tmp_xschemrc "$::env(PDK_ROOT)/$::env(PDK)/libs.tech/xschem/xschemrc"
    if {[file exists "$tmp_xschemrc"]} {
      puts "Sourcing IHP Xschem configuration from $tmp_xschemrc"
      source $tmp_xschemrc
    } else {
      puts "IHP Xschem configuration not found: $tmp_xschemrc"
    }
  } else {
    puts "Set PDK envoronmental variable"
  }
} else {
  puts "Set PDK_ROOT envoronmental variable"
}

append XSCHEM_LIBRARY_PATH :/usr/local/share/doc/xschem/analyses
append postinit_commands {
  foreach i $pathlist {
    if {![catch {source $i/lib_init.tcl} retval]} {
      puts "Sourced library init file $i/lib_init.tcl"
    } 
  }
}

set netlist_type spectre
set editor {kwrite}
