mirror of https://github.com/leafspark/AutoGGUF
fix: import missing modules
This commit is contained in:
parent
6e424462ab
commit
ca9f9a4a76
|
@ -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 *
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue