Skip to content

Commit 836c28e

Browse files
merge: origin/milestone-2 conflicts fix
2 parents 29de132 + 3ff798c commit 836c28e

1 file changed

Lines changed: 9 additions & 4 deletions

File tree

rift/runtime/riftlib.py

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
import os
22
import platform
33
import subprocess
4+
from pathlib import Path
45

56
import requests
67
from tqdm import tqdm
7-
from pathlib import Path
88

99
from rift.runtime.config import Config
1010

@@ -55,7 +55,9 @@ def determine_lib(cls) -> str:
5555
@classmethod
5656
def _call_get(cls, command):
5757
p = subprocess.Popen(
58-
command, stdout=subprocess.PIPE, stderr=subprocess.PIPE
58+
command,
59+
stdout=subprocess.PIPE,
60+
stderr=subprocess.PIPE,
5961
)
6062
out, err = p.communicate()
6163
if p.returncode == 0:
@@ -69,7 +71,8 @@ def get_shared_libs(cls):
6971
raise RuntimeError("Error fetching shared libraries!")
7072
res = filter(lambda x: "=>" in x, res.split("\n"))
7173
res = map(
72-
lambda x: list(map(lambda f: f.strip(), x.split("=>"))), res
74+
lambda x: list(map(lambda f: f.strip(), x.split("=>"))),
75+
res,
7376
)
7477
libs = dict(res)
7578
return libs
@@ -106,5 +109,7 @@ def setup_riftlib(cls):
106109
if cls.is_setup():
107110
return
108111
url = cls.determine_lib()
109-
os.makedirs(Path(lib_path).parent.absolute(), mode=0o777, exist_ok=True)
112+
os.makedirs(
113+
Path(lib_path).parent.absolute(), mode=0o777, exist_ok=True
114+
)
110115
cls._download(url, lib_path, buffer=4096)

0 commit comments

Comments
 (0)