From 7796829a8683c4baade7f16f05f5dfe39d1c7c15 Mon Sep 17 00:00:00 2001 From: ReturnFI <151555003+ReturnFI@users.noreply.github.com> Date: Sat, 11 Oct 2025 17:04:26 +0000 Subject: [PATCH] Fix Path --- core/scripts/hysteria2/node.py | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/core/scripts/hysteria2/node.py b/core/scripts/hysteria2/node.py index 1de692f..e8c6150 100644 --- a/core/scripts/hysteria2/node.py +++ b/core/scripts/hysteria2/node.py @@ -6,16 +6,8 @@ import argparse from pathlib import Path import re from ipaddress import ip_address - -core_scripts_dir = Path(__file__).resolve().parents[1] -if str(core_scripts_dir) not in sys.path: - sys.path.append(str(core_scripts_dir)) - -try: - from paths import NODES_JSON_PATH -except ImportError: - NODES_JSON_PATH = Path("/etc/hysteria/nodes.json") - +from init_paths import * +from paths import NODES_JSON_PATH def is_valid_ip_or_domain(value: str) -> bool: """Check if the value is a valid IP address or domain name."""