From ee4ae8684ba409749a5614dde3c30c46b83f6c2a Mon Sep 17 00:00:00 2001 From: jindaxia Date: Tue, 23 Feb 2021 11:31:39 +0800 Subject: [PATCH] put devices.ini in resources folder --- src/main/python/main.py | 2 +- devices.ini => src/main/resources/base/devices.ini | 0 2 files changed, 1 insertion(+), 1 deletion(-) rename devices.ini => src/main/resources/base/devices.ini (100%) diff --git a/src/main/python/main.py b/src/main/python/main.py index 0f7c00a..dafdd15 100644 --- a/src/main/python/main.py +++ b/src/main/python/main.py @@ -229,7 +229,7 @@ def __init__(self): def load_devices_ini(self): cf = configparser.ConfigParser() - cf.read("devices.ini") + cf.read(appctxt.get_resource("devices.ini")) for sec in cf.sections(): # print(cf.options(sec)) vid = int(cf.get(sec,'vid'), 16) diff --git a/devices.ini b/src/main/resources/base/devices.ini similarity index 100% rename from devices.ini rename to src/main/resources/base/devices.ini