|
@@ -7,12 +7,12 @@
|
|
@Desc : enter point
|
|
@Desc : enter point
|
|
'''
|
|
'''
|
|
from set_github_secret import GithubApi
|
|
from set_github_secret import GithubApi
|
|
|
|
+from set_github_secret.utils.frozen_dir import get_app_path
|
|
import json,os,sys
|
|
import json,os,sys
|
|
|
|
|
|
if __name__=='__main__':
|
|
if __name__=='__main__':
|
|
|
|
|
|
- # current_run_path = os.path.dirname(os.path.realpath(__file__)) 错误: windows exe 定位到 temp目录
|
|
|
|
- current_run_path = sys.path[0]
|
|
|
|
|
|
+ current_run_path = get_app_path()
|
|
if os.path.exists("account.json"):
|
|
if os.path.exists("account.json"):
|
|
with open("account.json", "r") as file:
|
|
with open("account.json", "r") as file:
|
|
data = json.load(file)
|
|
data = json.load(file)
|