From da94875407e8ba18879a464829eada2c141be43b Mon Sep 17 00:00:00 2001 From: yutent Date: Mon, 11 Sep 2023 14:55:19 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E4=B8=80=E5=A4=84=E8=AF=AD?= =?UTF-8?q?=E6=B3=95=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- build.sh | 2 +- usr/lib/hosts-switch/hosts-switch.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/build.sh b/build.sh index 5e4d368..a708dda 100755 --- a/build.sh +++ b/build.sh @@ -4,7 +4,7 @@ if [ -d unpack ]; then sudo rm -rf unpack fi -version="3.0.3" +version="3.0.4" mkdir -p unpack/DEBIAN diff --git a/usr/lib/hosts-switch/hosts-switch.py b/usr/lib/hosts-switch/hosts-switch.py index eb32937..f7ba9a0 100755 --- a/usr/lib/hosts-switch/hosts-switch.py +++ b/usr/lib/hosts-switch/hosts-switch.py @@ -13,8 +13,8 @@ APP_ID = 'fun.wkit.hosts-switch' __dir__ = os.path.dirname(os.path.realpath(__file__)) web_root = os.path.join(__dir__, './webapp') -home_dir = os.getenv('HOME'), -config_dir = os.path.join(os.getenv('HOME'), '.config/hosts-switch'), +home_dir = os.getenv('HOME') +config_dir = os.path.join(home_dir, '.config/hosts-switch') if not os.path.isdir(config_dir):