Skip to content

Commit 0f8ce6e

Browse files
committed
load ipm fixed
1 parent 72e7f4f commit 0f8ce6e

File tree

3 files changed

+6
-5
lines changed

3 files changed

+6
-5
lines changed

.vscode/settings.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
"service": "iris",
1313
"internalPort": 52773
1414
},
15-
"active": false
15+
"active": true
1616
},
1717
"sqltools.connections": [
1818
{

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,5 +22,5 @@ RUN --mount=type=bind,src=.,dst=. \
2222
pip3 install -r requirements.txt && \
2323
iris start IRIS && \
2424
iris merge IRIS /home/irisowner/dev/merge.cpf && \
25-
python3 /home/irisowner/dev/iris-script.py && \
25+
irispython /home/irisowner/dev/iris-script.py && \
2626
iris stop IRIS quietly

iris-script.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
import iris
44
import pandas as pd
55
from sqlalchemy import create_engine
6-
from grongier.pex import Utils
6+
from iris import ipm
77

88
# switch namespace to the %SYS namespace
99
iris.system.Process.SetNamespace("%SYS")
@@ -14,8 +14,9 @@
1414
# switch namespace to IRISAPP built by merge.cpf
1515
iris.system.Process.SetNamespace("IRISAPP")
1616

17-
# load zpm packages
18-
iris.cls('%ZPM.PackageManager').Shell("load /home/irisowner/dev -v")
17+
# load ipm package listed in module.xml
18+
#iris.cls('%ZPM.PackageManager').Shell("load /home/irisowner/dev -v")
19+
assert ipm('load /home/irisowner/dev -v')
1920

2021
# load demo data
2122
engine = create_engine('iris+emb:///')

0 commit comments

Comments
 (0)