diff --git a/CHANGELOG.md b/CHANGELOG.md index e73fb2c..5a714ae 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,4 +1,12 @@ +# Version 1.9 - 2024-05-28 + +* Bugfix issue #34 ("XSection: Active Technology" not working in Windows) + +# Version 1.8 - 2024-04-25 + +* Bugfix issue #29 (Issues with batch mode of XSection) + # Version 1.7 - 2023-09-15 * Bugfix for XS::layer diff --git a/src/grain.xml b/src/grain.xml index 27bab1f..5fea895 100644 --- a/src/grain.xml +++ b/src/grain.xml @@ -1,7 +1,7 @@ xsection - 1.7 + 1.9 Ruby script A generator for vertical cross sections of layouts using a technology description file. diff --git a/src/macros/xsection.lym b/src/macros/xsection.lym index aaf91ff..70f17d7 100644 --- a/src/macros/xsection.lym +++ b/src/macros/xsection.lym @@ -32,7 +32,7 @@ require_relative("../ruby/xsection") module XS # UPDATE THE VERSION NUMBER ON EACH RELEASE HERE - VERSION = "1.8" + VERSION = "1.9" @xsection_processing_environment = XSectionScriptEnvironment.new diff --git a/src/ruby/xsection_script.rb b/src/ruby/xsection_script.rb index 029db3f..633dde6 100644 --- a/src/ruby/xsection_script.rb +++ b/src/ruby/xsection_script.rb @@ -92,7 +92,8 @@ def initialize end tech_name = view.active_cellview.technology tech = RBA::Technology.technology_by_name(tech_name) - xsect_dir = File.join(tech.base_path, 'xsect') + # NOTE: Dir.glob does not like backslashes (important on Windows) - issue #34 + xsect_dir = File.join(tech.base_path.gsub('\\', '/'), 'xsect') unless File.exist?(xsect_dir) raise "No Xsection directory present for #{tech_name}" end