add relative path call for engines

This commit is contained in:
2023-06-07 12:13:30 +02:00
parent 7377625812
commit b79e206f0d
4 changed files with 9 additions and 10 deletions

View File

@@ -17,6 +17,7 @@ import json
import importlib
import shutil
import time
import tempfile
importedModules = {}
@@ -50,9 +51,9 @@ class Handler:
print( '\n\n SimpleMediaScalerLite - V1.1.0\n\n(c) 2023 SimpleMediaScalerLite contributors\n\n\n\n' );
if self.os_type == 'linux':
self.tmppath = config['PathSettings']['tmpPathLinux']
self.tmppath = tempfile.gettempdir()
elif self.os_type == 'win32':
self.tmppath = config['PathSettings']['tmpPathWindows']
self.tmppath = tempfile.gettempdir()
else:
print('OS CURRENTLY UNSUPPORTED!')
return False