path fixes for win
This commit is contained in:
@@ -40,6 +40,9 @@ class Handler:
|
|||||||
else:
|
else:
|
||||||
print("OS CURRENTLY UNSUPPORTED!")
|
print("OS CURRENTLY UNSUPPORTED!")
|
||||||
return False
|
return False
|
||||||
|
if ( self.os_type == 'win32' ):
|
||||||
|
self.tmppath += '\\fsru\\'
|
||||||
|
else:
|
||||||
if ( self.tmppath[len(self.tmppath) - 1: ] == '/' ):
|
if ( self.tmppath[len(self.tmppath) - 1: ] == '/' ):
|
||||||
self.tmppath += "fsru/"
|
self.tmppath += "fsru/"
|
||||||
else:
|
else:
|
||||||
@@ -115,7 +118,7 @@ class Handler:
|
|||||||
print("linux")
|
print("linux")
|
||||||
self.command = f"ffmpeg -i {str(self.filepath)} {self.tmppath}ex%08d.png"
|
self.command = f"ffmpeg -i {str(self.filepath)} {self.tmppath}ex%08d.png"
|
||||||
elif self.os_type == "win32":
|
elif self.os_type == "win32":
|
||||||
self.command = f"ffmpeg -i {str(self.filepath)} ${self.tmppath}ex%08d.png"
|
self.command = f"ffmpeg -i {str(self.filepath)} {self.tmppath}ex%08d.png"
|
||||||
else:
|
else:
|
||||||
print("OS CURRENTLY UNSUPPORTED!")
|
print("OS CURRENTLY UNSUPPORTED!")
|
||||||
return False
|
return False
|
||||||
@@ -130,6 +133,9 @@ class Handler:
|
|||||||
self.number = 0
|
self.number = 0
|
||||||
for self.file in self.filelist:
|
for self.file in self.filelist:
|
||||||
self.number += 1
|
self.number += 1
|
||||||
|
if ( self.os_type == 'win32' ):
|
||||||
|
self.files += f"{self.tmppath}{self.file} {self.tmppath}sc\\ig{str(self.number).zfill(8)}.png "
|
||||||
|
else:
|
||||||
self.files += f"{self.tmppath}{self.file} {self.tmppath}sc/ig{str(self.number).zfill(8)}.png "
|
self.files += f"{self.tmppath}{self.file} {self.tmppath}sc/ig{str(self.number).zfill(8)}.png "
|
||||||
self.maxlength = 31900
|
self.maxlength = 31900
|
||||||
self.pos = 1
|
self.pos = 1
|
||||||
|
|||||||
Reference in New Issue
Block a user