From c92cf76356129b69c15c3aeca30c745671874d88 Mon Sep 17 00:00:00 2001 From: Bruce Hill Date: Wed, 27 Mar 2019 14:40:14 -0700 Subject: Fix for finding source files when they're in the NOMSUPATH --- nomsu_environment.moon | 2 ++ 1 file changed, 2 insertions(+) (limited to 'nomsu_environment.moon') diff --git a/nomsu_environment.moon b/nomsu_environment.moon index c519b06..0f5f411 100644 --- a/nomsu_environment.moon +++ b/nomsu_environment.moon @@ -235,6 +235,8 @@ nomsu_environment = Importer{ unless @SOURCE_MAP[source_key] or @OPTIMIZATION >= 2 map = {} file = Files.read(source.filename) + if not file and NOMSU_PREFIX + file = Files.read("#{NOMSU_PREFIX}/share/nomsu/#{table.concat NOMSU_VERSION, "."}/#{source.filename}") if not file error "Failed to find file: #{source.filename}" nomsu_str = file\sub(source.start, source.stop) -- cgit v1.2.3