made all drivers change cwd to binary's parent directory to resolve fnf issues

This commit is contained in:
K4YT3X
2020-06-13 06:26:27 -04:00
parent 986619165f
commit a0745e2196
6 changed files with 22 additions and 2 deletions

View File

@@ -82,8 +82,8 @@ class WrapperMain:
threads {int} -- number of threads
"""
# waifu2x-converter-cpp cannot fine libw2xc.so under Linux
# if the working directory is not waifu2x-converter-cpp's directory
# change the working directory to the binary's parent directory
# so the binary can find shared object files and other files
os.chdir(pathlib.Path(self.driver_settings['path']).parent)
# overwrite config file settings