fix: import missing modules

This commit is contained in:
BuildTools 2024-08-22 21:59:01 -07:00
parent 6e424462ab
commit ca9f9a4a76
No known key found for this signature in database
GPG Key ID: 3270C066C15D530B
2 changed files with 3 additions and 3 deletions

View File

@ -5,7 +5,7 @@
from functools import partial from functools import partial
from datetime import datetime from datetime import datetime
from typing import Tuple, Dict from typing import Tuple, Dict, List, Any
from dotenv import load_dotenv from dotenv import load_dotenv
from PySide6.QtCore import * from PySide6.QtCore import *
from PySide6.QtGui import * from PySide6.QtGui import *

View File

@ -1,6 +1,6 @@
import os import os
import sys import sys
from typing import LiteralString, TextIO, Union from typing import TextIO, Union
import psutil import psutil
import subprocess import subprocess
@ -69,7 +69,7 @@ def open_file_safe(file_path, mode="r") -> TextIO:
) )
def resource_path(relative_path) -> Union[LiteralString, str, bytes]: def resource_path(relative_path) -> Union[str, str, bytes]:
if hasattr(sys, "_MEIPASS"): if hasattr(sys, "_MEIPASS"):
# PyInstaller path # PyInstaller path
base_path = sys._MEIPASS base_path = sys._MEIPASS