Skip to content

Commit

Permalink
Don't crash converting qxf flies in CWD, #72
Browse files Browse the repository at this point in the history
  • Loading branch information
brunchboy committed Jan 15, 2022
1 parent 16dce77 commit dcd3a6e
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
6 changes: 5 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,11 @@ This change log follows the conventions of

## [Unreleased][unreleased]

Nothing so far.
### Fixed

- Afterglow would crash when told to convert a QLC+ fixture definition
in the current working directory (with no path component), #72


## [0.2.5] - 2022-01-12

Expand Down
2 changes: 1 addition & 1 deletion project.clj
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
(defproject afterglow "0.2.5"
(defproject afterglow "0.2.6-SNAPSHOT"
:description "A live-coding environment for light shows, built on the Open Lighting Architecture, using bits of Overtone."
:url "https://github.com/Deep-Symmetry/afterglow"
:license {:name "Eclipse Public License 2.0"
Expand Down
2 changes: 1 addition & 1 deletion src/afterglow/fixtures/qxf.clj
Original file line number Diff line number Diff line change
Expand Up @@ -311,7 +311,7 @@
it that can be used as the starting point of an Afterglow fixture
definition. Returns an exit status and message for the user."
[path]
(let [source (io/file path)
(let [source (.getCanonicalFile (io/file path))
qxf (parse-qxf source)
dest (io/file (.getParent source) (str (csk/->kebab-case (:model qxf)) ".clj"))]
(cond
Expand Down

0 comments on commit dcd3a6e

Please sign in to comment.