depot/third_party/nixpkgs/pkgs/development/python-modules/pysc2/parameterize-runconfig-sc2path.patch
Default email 8ac5e011d6 Project import generated by Copybara.
GitOrigin-RevId: 2c3273caa153ee8eb5786bc8141b85b859e7efd7
2020-04-24 19:36:52 -04:00

18 lines
703 B
Diff

diff --git a/pysc2/run_configs/platforms.py b/pysc2/run_configs/platforms.py
index 5cd84f9..1923cb7 100644
--- a/pysc2/run_configs/platforms.py
+++ b/pysc2/run_configs/platforms.py
@@ -119,12 +119,9 @@ class Linux(LocalBase):
"""Config to run on Linux."""
def __init__(self):
- base_dir = os.environ.get("SC2PATH", "~/StarCraftII")
+ base_dir = os.environ.get("SC2PATH", "@sc2path@")
base_dir = os.path.expanduser(base_dir)
env = copy.deepcopy(os.environ)
- env["LD_LIBRARY_PATH"] = ":".join(filter(None, [
- os.environ.get("LD_LIBRARY_PATH"),
- os.path.join(base_dir, "Libs/")]))
super(Linux, self).__init__(base_dir, "SC2_x64", env=env)
@classmethod