fix bug
parent
6136f8a2f0
commit
0035d1dbeb
|
|
@ -3,7 +3,7 @@ Author: SpenserCai
|
||||||
Date: 2023-08-23 23:04:55
|
Date: 2023-08-23 23:04:55
|
||||||
version:
|
version:
|
||||||
LastEditors: SpenserCai
|
LastEditors: SpenserCai
|
||||||
LastEditTime: 2023-08-24 09:31:35
|
LastEditTime: 2023-08-24 11:25:54
|
||||||
Description: file content
|
Description: file content
|
||||||
'''
|
'''
|
||||||
import os
|
import os
|
||||||
|
|
@ -12,5 +12,7 @@ import urllib.request
|
||||||
from tqdm import tqdm
|
from tqdm import tqdm
|
||||||
from scripts.base import *
|
from scripts.base import *
|
||||||
|
|
||||||
|
init_base()
|
||||||
|
|
||||||
if (not check_bin()) or need_update():
|
if (not check_bin()) or need_update():
|
||||||
download_bin()
|
download_bin()
|
||||||
|
|
@ -3,7 +3,7 @@ Author: SpenserCai
|
||||||
Date: 2023-08-23 23:12:27
|
Date: 2023-08-23 23:12:27
|
||||||
version:
|
version:
|
||||||
LastEditors: SpenserCai
|
LastEditors: SpenserCai
|
||||||
LastEditTime: 2023-08-24 11:23:23
|
LastEditTime: 2023-08-24 11:25:37
|
||||||
Description: file content
|
Description: file content
|
||||||
'''
|
'''
|
||||||
import os
|
import os
|
||||||
|
|
@ -13,9 +13,13 @@ import sys
|
||||||
import tarfile
|
import tarfile
|
||||||
import shutil
|
import shutil
|
||||||
|
|
||||||
bin_path = os.path.join(scripts.basedir(), "bin")
|
bin_path = None
|
||||||
api_url = "https://api.github.com/repos/SpenserCai/sd-webui-discord/releases/latest"
|
api_url = "https://api.github.com/repos/SpenserCai/sd-webui-discord/releases/latest"
|
||||||
|
|
||||||
|
def init_base():
|
||||||
|
global bin_path
|
||||||
|
bin_path = os.path.join(scripts.basedir(), "bin")
|
||||||
|
|
||||||
def get_bin_process_path():
|
def get_bin_process_path():
|
||||||
if sys.platform == "win32":
|
if sys.platform == "win32":
|
||||||
return os.path.join(bin_path, "sd-webui-discord.exe")
|
return os.path.join(bin_path, "sd-webui-discord.exe")
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue