diff options
author | marmeladema <xademax@gmail.com> | 2019-12-09 23:01:34 +0000 |
---|---|---|
committer | marmeladema <xademax@gmail.com> | 2019-12-10 16:11:03 +0000 |
commit | 02c55e2ecaa110120ac228c59a8778b19ef494d5 (patch) | |
tree | 208543f40c383280591d02c891c371501e885f89 /python/servo/command_base.py | |
parent | 17233f2dd298a1ed6933e45870c3cb6878456cef (diff) | |
download | servo-02c55e2ecaa110120ac228c59a8778b19ef494d5.tar.gz servo-02c55e2ecaa110120ac228c59a8778b19ef494d5.zip |
Use is_linux to check for current platform instead of relying on sys.platform
Diffstat (limited to 'python/servo/command_base.py')
-rw-r--r-- | python/servo/command_base.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/python/servo/command_base.py b/python/servo/command_base.py index 9dfa6795d12..764afc9a15a 100644 --- a/python/servo/command_base.py +++ b/python/servo/command_base.py @@ -258,7 +258,7 @@ def gstreamer_root(target, env, topdir=None): return env.get(gst_env) elif os.path.exists(path.join(gst_default_path, "bin", "ffi-7.dll")): return gst_default_path - elif sys.platform == "linux2": + elif is_linux(): return path.join(topdir, "support", "linux", "gstreamer", "gst") return None @@ -580,7 +580,7 @@ class CommandBase(object): if "x86_64" not in effective_target or "android" in effective_target: # We don't build gstreamer for non-x86_64 / android yet return False - if sys.platform == "linux2" or is_windows(): + if is_linux() or is_windows(): if path.isdir(gstreamer_root(effective_target, env, self.get_top_dir())): return True else: @@ -690,7 +690,7 @@ install them, let us know by filing a bug!") extra_lib = [libpath] + extra_lib append_to_path_env(path.join(libpath, "pkgconfig"), env, "PKG_CONFIG_PATH") - if sys.platform == "linux2": + if is_linux(): distrib, version, _ = distro.linux_distribution() distrib = six.ensure_str(distrib) version = six.ensure_str(version) |