From f0139df76f4638ba8ea913d4bbb57c4ab5b7f076 Mon Sep 17 00:00:00 2001 From: 5hojib Date: Fri, 27 Dec 2024 06:42:13 +0600 Subject: [PATCH] update __init__.py --- bot/__init__.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/bot/__init__.py b/bot/__init__.py index 4d0f0d616..1f3d7d9ba 100644 --- a/bot/__init__.py +++ b/bot/__init__.py @@ -9,7 +9,7 @@ basicConfig, getLogger, ) -from os import getcwd +import os from socket import setdefaulttimeout from time import time @@ -73,7 +73,7 @@ aria2 = ariaAPI(ariaClient(host="http://localhost", port=6800, secret="")) -subprocess.run(["xnox", "-d", f"--profile={getcwd()}"], check=False) +subprocess.run(["xnox", "-d", f"--profile={os.getcwd()}"], check=False) xnox_client = QbClient( @@ -103,7 +103,7 @@ subprocess.run(["xria", "--conf-path=/usr/src/app/a2c.conf"], check=False) -if ospath.exists("shorteners.txt"): +if os.path.exists("shorteners.txt"): with open("shorteners.txt", "r+") as f: lines = f.readlines() for line in lines: