@@ -1885,8 +1885,8 @@ class Factory(object):
1885
1885
"mesos-path" ,
1886
1886
"mesos-preload" ,
1887
1887
"min-workers" ,
1888
- "package" ,
1889
1888
"password" ,
1889
+ "python-package" ,
1890
1890
"run-factory-as-manager" ,
1891
1891
"runos" ,
1892
1892
"scratch-dir" ,
@@ -1933,7 +1933,6 @@ def __init__(
1933
1933
1934
1934
self ._config_file = None
1935
1935
self ._factory_proc = None
1936
- self ._env_file = None
1937
1936
self ._log_file = log_file
1938
1937
1939
1938
(tmp , self ._error_file ) = tempfile .mkstemp (
@@ -2030,11 +2029,9 @@ def __setattr__(self, name, value):
2030
2029
raise AttributeError ("{} is not a supported option" .format (name ))
2031
2030
2032
2031
def _construct_command_line (self ):
2033
- # check for environment file
2032
+ # check for environment file
2034
2033
args = [self ._factory_binary ]
2035
2034
2036
- if self .env_file :
2037
- args += ['--python-package' , self ._env_file ]
2038
2035
args += ['--parent-death' ]
2039
2036
args += ['--config-file' , self ._config_file ]
2040
2037
@@ -2044,9 +2041,9 @@ def _construct_command_line(self):
2044
2041
flags = [opt for opt in Factory ._command_line_options if opt [0 ] != ":" ]
2045
2042
2046
2043
for opt in self ._opts :
2047
- if opt not in Factor ._command_line_options :
2044
+ if opt not in Factory ._command_line_options :
2048
2045
continue
2049
- if opt in Factor ._config_file_options :
2046
+ if opt in Factory ._config_file_options :
2050
2047
continue
2051
2048
if self ._opts [opt ] is True :
2052
2049
args .append ("--{}" .format (opt ))
0 commit comments