Skip to content

Commit 2039859

Browse files
committed
add wayang.properties file for python api tests
1 parent 8c4592f commit 2039859

2 files changed

Lines changed: 22 additions & 1 deletion

File tree

wayang-api/wayang-api-python/src/main/java/org/apache/wayang/api/python/executor/PythonProcessCaller.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,9 @@ public PythonProcessCaller() {
4343

4444
// TODO create documentation to how to the configuration in the code
4545
this.configuration = new Configuration();
46-
this.configuration.load(ReflectionUtils.loadResource("wayang-api-python-defaults.properties"));
46+
System.out.println(this.configuration.getStringProperty("wayang.api.python.worker"));
47+
//this.configuration.load(ReflectionUtils.loadResource("wayang-api-python-defaults.properties"));
48+
System.out.println(this.configuration.getStringProperty("wayang.api.python.worker"));
4749
this.ready = false;
4850
final byte[] addr = new byte[4];
4951
addr[0] = 127;
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
#
2+
# Licensed to the Apache Software Foundation (ASF) under one or more
3+
# contributor license agreements. See the NOTICE file distributed with
4+
# this work for additional information regarding copyright ownership.
5+
# The ASF licenses this file to You under the Apache License, Version 2.0
6+
# (the "License"); you may not use this file except in compliance with
7+
# the License. You may obtain a copy of the License at
8+
#
9+
# http://www.apache.org/licenses/LICENSE-2.0
10+
#
11+
# Unless required by applicable law or agreed to in writing, software
12+
# distributed under the License is distributed on an "AS IS" BASIS,
13+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14+
# See the License for the specific language governing permissions and
15+
# limitations under the License.
16+
#
17+
wayang.api.python.worker = python/src/pywy/execution/worker.py
18+
wayang.api.python.path = python3
19+
# wayang.api.python.env.path = /usr/local/lib/python3.8/dist-packages

0 commit comments

Comments
 (0)