Skip to content

Commit 9f3b7c9

Browse files
committed
removed hardcoded lib path
1 parent 2265592 commit 9f3b7c9

File tree

1 file changed

+1
-1
lines changed
  • bundles/org.openhab.automation.pythonscripting/src/main/java/org/openhab/automation/pythonscripting/internal/fs/watch

1 file changed

+1
-1
lines changed

bundles/org.openhab.automation.pythonscripting/src/main/java/org/openhab/automation/pythonscripting/internal/fs/watch/PythonScriptFileWatcher.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ public PythonScriptFileWatcher(
4747

4848
@Override
4949
protected Optional<String> getScriptType(Path scriptFilePath) {
50-
if (!scriptFilePath.startsWith(getWatchPath().resolve("lib"))) {
50+
if (!scriptFilePath.startsWith(PythonScriptEngineFactory.PYTHON_LIB_PATH)) {
5151
Optional<String> scriptFileSuffix = super.getScriptType(scriptFilePath);
5252
if (scriptFileSuffix.isPresent() && "py".equals(scriptFileSuffix.get())) {
5353
return Optional.of(PythonScriptEngineFactory.SCRIPT_TYPE);

0 commit comments

Comments
 (0)