[py] Move platform to be initialised earlier before it is called
@@ -43,6 +43,7 @@ class FirefoxBinary(object):
# a while the pipe would fill up and Firefox would freeze.
self._log_file = log_file or open(os.devnull, "wb")
self.command_line = None
+ self.platform = system().lower()
if not self._start_cmd:
self._start_cmd = self._get_firefox_start_cmd()
if not self._start_cmd.strip():
@@ -59,7 +60,6 @@ class FirefoxBinary(object):
self._firefox_env["MOZ_CRASHREPORTER_DISABLE"] = "1"
self._firefox_env["MOZ_NO_REMOTE"] = "1"
self._firefox_env["NO_EM_RESTART"] = "1"
- self.platform = system().lower()
def add_command_line_options(self, *args):
self.command_line = args
