Skip to content

Commit 5d27d67

Browse files
committed
fix python-package arg for Factory in python bindings
1 parent 2067040 commit 5d27d67

File tree

1 file changed

+4
-7
lines changed

1 file changed

+4
-7
lines changed

work_queue/src/bindings/python3/work_queue.binding.py

+4-7
Original file line numberDiff line numberDiff line change
@@ -1885,8 +1885,8 @@ class Factory(object):
18851885
"mesos-path",
18861886
"mesos-preload",
18871887
"min-workers",
1888-
"package",
18891888
"password",
1889+
"python-package",
18901890
"run-factory-as-manager",
18911891
"runos",
18921892
"scratch-dir",
@@ -1933,7 +1933,6 @@ def __init__(
19331933

19341934
self._config_file = None
19351935
self._factory_proc = None
1936-
self._env_file = None
19371936
self._log_file = log_file
19381937

19391938
(tmp, self._error_file) = tempfile.mkstemp(
@@ -2030,11 +2029,9 @@ def __setattr__(self, name, value):
20302029
raise AttributeError("{} is not a supported option".format(name))
20312030

20322031
def _construct_command_line(self):
2033-
# check for environment file
2032+
# check for environment file
20342033
args = [self._factory_binary]
20352034

2036-
if self.env_file:
2037-
args += ['--python-package', self._env_file ]
20382035
args += ['--parent-death']
20392036
args += ['--config-file', self._config_file]
20402037

@@ -2044,9 +2041,9 @@ def _construct_command_line(self):
20442041
flags = [opt for opt in Factory._command_line_options if opt[0] != ":"]
20452042

20462043
for opt in self._opts:
2047-
if opt not in Factor._command_line_options:
2044+
if opt not in Factory._command_line_options:
20482045
continue
2049-
if opt in Factor._config_file_options:
2046+
if opt in Factory._config_file_options:
20502047
continue
20512048
if self._opts[opt] is True:
20522049
args.append("--{}".format(opt))

0 commit comments

Comments
 (0)