From 69245c49c59e2299bdafff5884e6fbf95f027f4b Mon Sep 17 00:00:00 2001 From: orwell96 Date: Wed, 19 Dec 2018 17:25:02 +0100 Subject: Make path configurable --- nodedb.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'nodedb.lua') diff --git a/nodedb.lua b/nodedb.lua index f79dbbd..570f751 100644 --- a/nodedb.lua +++ b/nodedb.lua @@ -57,7 +57,7 @@ local path="advtrains_ndb2" --nodeids get loaded by advtrains init.lua and passed here function ndb.load_data(data) ndb_nodeids = data and data.nodeids or {} - local file, err = io.open(path, "rb") + local file, err = io.open(datapath..path, "rb") if not file then print("Couldn't load the node database: ", err or "Unknown Error") else -- cgit v1.2.3