Skip to content

Commit

Permalink
Bugfix issue #34 - version 1.9
Browse files Browse the repository at this point in the history
  • Loading branch information
Matthias Koefferlein committed May 28, 2024
1 parent f9599c0 commit 2da6cec
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 3 deletions.
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 1 addition & 1 deletion src/grain.xml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<salt-grain>
<name>xsection</name>
<version>1.7</version>
<version>1.9</version>
<api-version/>
<title>Ruby script</title>
<doc>A generator for vertical cross sections of layouts using a technology description file.</doc>
Expand Down
2 changes: 1 addition & 1 deletion src/macros/xsection.lym
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
3 changes: 2 additions & 1 deletion src/ruby/xsection_script.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 2da6cec

Please sign in to comment.