Rikka
2023-05-27 16:55:26 +08:00
committed by Rikka
parent 0d7681bccb
commit ca932b90e1
2 changed files with 13 additions and 8 deletions
+2 -2
View File
@@ -23,8 +23,8 @@ def get_download_dir():
def get_data_dir():
return os.path.join('/', "home", os.environ.get("SUDO_USER", os.environ["USER"]), ".local", "share", "waydroid", "data")
def run(args, ignore=""):
result = subprocess.run(args=args, stdout=subprocess.PIPE, stderr=subprocess.PIPE)
def run(args, env=None, ignore=""):
result = subprocess.run(args=args, env=env, stdout=subprocess.PIPE, stderr=subprocess.PIPE)
# print(result.stdout.decode())
if result.stderr:
error = result.stderr.decode("utf-8")