Skip to content

Commit

Permalink
load ipm fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
evshvarov committed Sep 1, 2023
1 parent 72e7f4f commit 0f8ce6e
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
"service": "iris",
"internalPort": 52773
},
"active": false
"active": true
},
"sqltools.connections": [
{
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -22,5 +22,5 @@ RUN --mount=type=bind,src=.,dst=. \
pip3 install -r requirements.txt && \
iris start IRIS && \
iris merge IRIS /home/irisowner/dev/merge.cpf && \
python3 /home/irisowner/dev/iris-script.py && \
irispython /home/irisowner/dev/iris-script.py && \
iris stop IRIS quietly
7 changes: 4 additions & 3 deletions iris-script.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
import iris
import pandas as pd
from sqlalchemy import create_engine
from grongier.pex import Utils
from iris import ipm

# switch namespace to the %SYS namespace
iris.system.Process.SetNamespace("%SYS")
Expand All @@ -14,8 +14,9 @@
# switch namespace to IRISAPP built by merge.cpf
iris.system.Process.SetNamespace("IRISAPP")

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

# load demo data
engine = create_engine('iris+emb:///')
Expand Down

0 comments on commit 0f8ce6e

Please sign in to comment.