Fix filename in modules
This commit is contained in:
parent
851cf85923
commit
7baffb8cc0
2 changed files with 6 additions and 2 deletions
|
|
@ -32,6 +32,7 @@ ESTIMATE = ""
|
||||||
TOKENS = [0, 0]
|
TOKENS = [0, 0]
|
||||||
NAMESLIST = []
|
NAMESLIST = []
|
||||||
MISMATCH = [] # Lists files that throw a mismatch error (Length of GPT list response is wrong)
|
MISMATCH = [] # Lists files that throw a mismatch error (Length of GPT list response is wrong)
|
||||||
|
FILENAME = None
|
||||||
|
|
||||||
# Open AI
|
# Open AI
|
||||||
load_dotenv()
|
load_dotenv()
|
||||||
|
|
@ -70,8 +71,9 @@ LEAVE = False
|
||||||
|
|
||||||
|
|
||||||
def handleImages(folderName, estimate):
|
def handleImages(folderName, estimate):
|
||||||
global ESTIMATE, TOKENS
|
global ESTIMATE, TOKENS, FILENAME
|
||||||
ESTIMATE = estimate
|
ESTIMATE = estimate
|
||||||
|
FILENAME = folderName
|
||||||
start = time.time()
|
start = time.time()
|
||||||
|
|
||||||
# Translate Strings
|
# Translate Strings
|
||||||
|
|
|
||||||
|
|
@ -43,6 +43,7 @@ BRFLAG = False # If the game uses <br> instead
|
||||||
FIXTEXTWRAP = True # Overwrites textwrap
|
FIXTEXTWRAP = True # Overwrites textwrap
|
||||||
IGNORETLTEXT = False # Ignores all translated text.
|
IGNORETLTEXT = False # Ignores all translated text.
|
||||||
MISMATCH = [] # Lists files that throw a mismatch error (Length of GPT list response is wrong)
|
MISMATCH = [] # Lists files that throw a mismatch error (Length of GPT list response is wrong)
|
||||||
|
FILENAME = None
|
||||||
|
|
||||||
# tqdm Globals
|
# tqdm Globals
|
||||||
BAR_FORMAT = "{l_bar}{bar:10}{r_bar}{bar:-10b}"
|
BAR_FORMAT = "{l_bar}{bar:10}{r_bar}{bar:-10b}"
|
||||||
|
|
@ -74,8 +75,9 @@ TRANSLATION_CONFIG = TranslationConfig(
|
||||||
LEAVE = False
|
LEAVE = False
|
||||||
|
|
||||||
def handlePlugin(filename, estimate):
|
def handlePlugin(filename, estimate):
|
||||||
global ESTIMATE, PBAR
|
global ESTIMATE, PBAR, FILENAME
|
||||||
ESTIMATE = estimate
|
ESTIMATE = estimate
|
||||||
|
FILENAME = filename
|
||||||
|
|
||||||
if ESTIMATE:
|
if ESTIMATE:
|
||||||
start = time.time()
|
start = time.time()
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue