👍[Update] Controller : config fileとlogs folderのリンクが開く昨日を追加

This commit is contained in:
misyaguziya
2023-11-08 22:00:31 +09:00
parent 5e1a293e9f
commit cbd717666a
2 changed files with 7 additions and 3 deletions

View File

@@ -1,6 +1,6 @@
import sys
import inspect
from os import path as os_path
from os import path as os_path, makedirs as os_makedirs
from json import load as json_load
from json import dump as json_dump
import tkinter as tk
@@ -533,6 +533,7 @@ class Config:
self._LOCAL_PATH = os_path.dirname(sys.argv[0])
self._PATH_CONFIG = os_path.join(self._LOCAL_PATH, "config.json")
self._PATH_LOGS = os_path.join(self._LOCAL_PATH, "logs")
os_makedirs(self._PATH_LOGS, exist_ok=True)
self._GITHUB_URL = "https://api.github.com/repos/misyaguziya/VRCT/releases/latest"
self._BOOTH_URL = "https://misyaguziya.booth.pm/"
self._DOCUMENTS_URL = "https://mzsoftware.notion.site/VRCT-Documents-be79b7a165f64442ad8f326d86c22246"

View File

@@ -1,4 +1,5 @@
from time import sleep
from subprocess import Popen
from threading import Thread
from config import config
from model import model
@@ -14,10 +15,12 @@ def callbackRestartSoftware():
model.reStartSoftware()
def callbackFilepathLogs():
print("callbackFilepathLogs")
print("callbackFilepathLogs", config.PATH_LOGS.replace('/', '\\'))
Popen(['explorer', config.PATH_LOGS.replace('/', '\\')], shell=True)
def callbackFilepathConfigFile():
print("callbackFilepathConfigFile")
print("callbackFilepathConfigFile", config.LOCAL_PATH.replace('/', '\\'))
Popen(['explorer', config.LOCAL_PATH.replace('/', '\\')], shell=True)
# func transcription send message
def sendMicMessage(message):