potential fix

This commit is contained in:
janis
2023-03-17 12:38:03 +01:00
parent d3142988bf
commit 51816e82e3
2 changed files with 4 additions and 4 deletions

View File

@@ -148,11 +148,9 @@ class Handler:
self.maxlength = 31900 self.maxlength = 31900
self.pos = 1 self.pos = 1
print("found files, assembling commands")
# Refactoring of commands that are longer than 32K characters # Refactoring of commands that are longer than 32K characters
self.fileout = []
if len(self.files) > self.maxlength: if len(self.files) > self.maxlength:
self.fileout = []
while self.files[self.maxlength - self.pos:self.maxlength - self.pos + 1] != " ": while self.files[self.maxlength - self.pos:self.maxlength - self.pos + 1] != " ":
self.pos += 1 self.pos += 1
self.file_processing = self.files[:self.maxlength - self.pos] self.file_processing = self.files[:self.maxlength - self.pos]
@@ -192,8 +190,9 @@ class Handler:
else: else:
self.fileout.append(self.files) self.fileout.append(self.files)
try: try:
os.mkdir(f"{self.tmppath}sc/") os.mkdir(f"{self.tmppath}sc")
except FileExistsError: except FileExistsError:
pass pass
@@ -219,6 +218,7 @@ class Handler:
else: else:
print("OS CURRENTLY UNSUPPORTED!") print("OS CURRENTLY UNSUPPORTED!")
return False return False
print( self.command_us )
os.system(self.command_us) os.system(self.command_us)
time.sleep(3) time.sleep(3)