Merge pull request #307098 from r-ryantm/auto-update/cilium-cli
[NixPkgs.git] / pkgs / development / python-modules / pysc2 / parameterize-runconfig-sc2path.patch
blobbe667503d47cfb199c062e42df3dbc3529c85c3d
1 diff --git a/pysc2/run_configs/platforms.py b/pysc2/run_configs/platforms.py
2 index 5cd84f9..1923cb7 100644
3 --- a/pysc2/run_configs/platforms.py
4 +++ b/pysc2/run_configs/platforms.py
5 @@ -119,12 +119,9 @@ class Linux(LocalBase):
6 """Config to run on Linux."""
8 def __init__(self):
9 - base_dir = os.environ.get("SC2PATH", "~/StarCraftII")
10 + base_dir = os.environ.get("SC2PATH", "@sc2path@")
11 base_dir = os.path.expanduser(base_dir)
12 env = copy.deepcopy(os.environ)
13 - env["LD_LIBRARY_PATH"] = ":".join(filter(None, [
14 - os.environ.get("LD_LIBRARY_PATH"),
15 - os.path.join(base_dir, "Libs/")]))
16 super(Linux, self).__init__(base_dir, "SC2_x64", env=env)
18 @classmethod