Files
JIMRI/java/test/jmri/script/import/imports.py
T
2026-06-17 14:00:51 +02:00

12 lines
318 B
Python

# tests that imports work
# manipulate the path to avoid copying test scripts into jython folder
import jmri
import sys
sys.path.append(jmri.util.FileUtil.getAbsoluteFilename('program:java/test/jmri/script/import'))
# the import we are testing
import imported
memories.provide('result').setValue(imported.getFoo())