File tree 5 files changed +6
-7
lines changed
5 files changed +6
-7
lines changed Original file line number Diff line number Diff line change 12
12
"service" : " iris" ,
13
13
"internalPort" : 52773
14
14
},
15
- "active" : false
15
+ "active" : true
16
16
},
17
17
"sqltools.connections" : [
18
18
{
Original file line number Diff line number Diff line change @@ -4,11 +4,10 @@ services:
4
4
build :
5
5
context : .
6
6
dockerfile : Dockerfile
7
- command : --check-caps false
8
7
restart : always
9
8
ports :
10
9
- 1972
11
- - 55037 :52773
10
+ - 55038 :52773
12
11
- 53773
13
12
volumes :
14
13
- ./:/home/irisowner/dev
Original file line number Diff line number Diff line change 9
9
<SourcesRoot >src</SourcesRoot >
10
10
<Resource Name =" dc.python.PKG" />
11
11
<FileCopy Name =" python/" Target =" ${libdir}python/" />
12
- <FileCopy Name =" data/" Target =" ${libdir}data/" />
12
+ <FileCopy Name =" data/" Target =" ${libdir}data/${packagename}/ " />
13
13
</Module >
14
14
</Document >
15
15
</Export >
Original file line number Diff line number Diff line change @@ -19,4 +19,4 @@ def meanage(filename):
19
19
20
20
return str (mean_age )
21
21
22
- print (meanage ("/home/irisowner/dev/data/titanic.csv" ))
22
+ # print(meanage("/home/irisowner/dev/data/titanic.csv"))
Original file line number Diff line number Diff line change 1
- Class dc .python .PythonFromObjectScript
1
+ Class dc .python .test
2
2
{
3
3
4
4
ClassMethod HelloWorld () As %Status
@@ -30,7 +30,7 @@ ClassMethod TitanicMeanAge() As %Status
30
30
{
31
31
Set sc = $$$OK
32
32
set tt =##class (%SYS.Python ).Import (" sample" )
33
- set path =$System . Util . ManagerDirectory () _" data/titanic.csv"
33
+ set path =##class ( %File ). NormalizeDirectory ( " lib " , ##class ( %File ). GetDirectory ( $zu ( 86 ))) _" data/iris-python-template /titanic.csv"
34
34
write " mean age=" _tt .meanage (path )
35
35
Return sc
36
36
}
You can’t perform that action at this time.
0 commit comments