File tree Expand file tree Collapse file tree 2 files changed +7
-3
lines changed Expand file tree Collapse file tree 2 files changed +7
-3
lines changed Original file line number Diff line number Diff line change 1
1
* V1.7.4dev
2
2
* extended run_and_get_stdout kernel function
3
3
* fixed problem in run_and_get_stdout (ValueError: I/O operation on closed file)
4
+ * fixed problem with --help or --get_api from kernel
4
5
5
6
* V1.7.3
6
7
* fixed rare bug when 'return' is non-integer in remote CK access (such as during crowd-tuning and crowd-testing)
Original file line number Diff line number Diff line change @@ -2041,7 +2041,7 @@ def init(i):
2041
2041
p = py
2042
2042
break
2043
2043
elif px != '' :
2044
- work ['env_root' ]= px
2044
+ work ['env_root' ]= px
2045
2045
2046
2046
if p == '' :
2047
2047
return {'return' :1 , 'error' :'Internal CK error (can\' t find default repo) - please report to authors' }
@@ -3265,7 +3265,6 @@ def get_api(i):
3265
3265
}
3266
3266
"""
3267
3267
3268
-
3269
3268
p = i .get ('path' ,'' )
3270
3269
f = i .get ('func' ,'' )
3271
3270
o = i ['out' ]
@@ -3282,7 +3281,11 @@ def get_api(i):
3282
3281
p = rx ['path' ]
3283
3282
3284
3283
if p == '' :
3285
- p = os .path .join (work ['env_root' ], cfg ['file_kernel_py' ])
3284
+ p1 = os .path .dirname (os .path .dirname (work ['dir_default_repo' ]))
3285
+ p = os .path .join (p1 , cfg ['file_kernel_py' ])
3286
+
3287
+ if not os .path .isfile (p ):
3288
+ return {'return' :1 , 'error' :'kernel not found in ' + p }
3286
3289
else :
3287
3290
p = os .path .join (p , 'module.py' )
3288
3291
You can’t perform that action at this time.
0 commit comments