From dcd3a6ed5d842876f8a8f5c0f7f3100d001fd608 Mon Sep 17 00:00:00 2001 From: James Elliott Date: Fri, 14 Jan 2022 23:44:17 -0600 Subject: [PATCH] Don't crash converting qxf flies in CWD, #72 --- CHANGELOG.md | 6 +++++- project.clj | 2 +- src/afterglow/fixtures/qxf.clj | 2 +- 3 files changed, 7 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 6e9e53a4..c9e3fbd6 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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 diff --git a/project.clj b/project.clj index eb0c32b1..0185615a 100644 --- a/project.clj +++ b/project.clj @@ -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" diff --git a/src/afterglow/fixtures/qxf.clj b/src/afterglow/fixtures/qxf.clj index 20a8f032..4081438b 100644 --- a/src/afterglow/fixtures/qxf.clj +++ b/src/afterglow/fixtures/qxf.clj @@ -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