Fixing bug on windows.
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
2b85bbdf47
commit
0873dfaabc
1 changed files with 4 additions and 3 deletions
|
@ -27,14 +27,14 @@ from PySide2.QtGui import QIcon, QImage, QKeySequence
|
||||||
from PySide2 import __version__ as PySide2_version
|
from PySide2 import __version__ as PySide2_version
|
||||||
|
|
||||||
from tempfile import mkstemp
|
from tempfile import mkstemp
|
||||||
from os import getcwd, chdir, environ, path, remove
|
from os import getcwd, chdir, environ, path, remove, close
|
||||||
from platform import release as os_release
|
from platform import release as os_release
|
||||||
from json import dumps, loads
|
from json import dumps, loads
|
||||||
from sys import platform, argv, version as sys_version
|
from sys import platform, argv, version as sys_version
|
||||||
from webbrowser import open as openWeb
|
from webbrowser import open as openWeb
|
||||||
|
|
||||||
# Create the temporary file for saving copied screenshots
|
# Create the temporary file for saving copied screenshots
|
||||||
tmpfile = mkstemp(suffix='.png')[1]
|
fd, tmpfile = mkstemp(suffix='.png')
|
||||||
pwd = getcwd()
|
pwd = getcwd()
|
||||||
|
|
||||||
chdir(path.dirname(path.realpath(__file__)))
|
chdir(path.dirname(path.realpath(__file__)))
|
||||||
|
@ -199,6 +199,7 @@ def run():
|
||||||
|
|
||||||
exit_code = app.exec_()
|
exit_code = app.exec_()
|
||||||
|
|
||||||
|
close(fd)
|
||||||
remove(tmpfile)
|
remove(tmpfile)
|
||||||
config.save()
|
config.save()
|
||||||
exit(exit_code)
|
exit(exit_code)
|
||||||
|
|
Loading…
Reference in a new issue