11import os
22import platform
33import subprocess
4+ from pathlib import Path
45
56import requests
67from tqdm import tqdm
7- from pathlib import Path
88
99from 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