mirror of
https://github.com/naruxde/revpicommander.git
synced 2025-11-08 16:43:53 +01:00
Bugfix: RevPi simulator could not be startet without existing proc.img file
The simulator will create a new proc.img file on startup if it does not exist.
This commit is contained in:
@@ -110,7 +110,7 @@ class Simulator(QtWidgets.QDialog, Ui_diag_simulator):
|
|||||||
configrsc_file = self.txt_configrsc.text()
|
configrsc_file = self.txt_configrsc.text()
|
||||||
procimg_file = self.txt_procimg.text()
|
procimg_file = self.txt_procimg.text()
|
||||||
if configrsc_file and procimg_file:
|
if configrsc_file and procimg_file:
|
||||||
file_access = access(procimg_file, W_OK)
|
file_access = access(procimg_file, W_OK) if exists(procimg_file) else access(dirname(procimg_file), W_OK)
|
||||||
self.txt_info.setPlainText("configrsc=\"{0}\", procimg=\"{1}\"".format(configrsc_file, procimg_file))
|
self.txt_info.setPlainText("configrsc=\"{0}\", procimg=\"{1}\"".format(configrsc_file, procimg_file))
|
||||||
self.btn_start_pictory.setEnabled(file_access)
|
self.btn_start_pictory.setEnabled(file_access)
|
||||||
self.btn_start_empty.setEnabled(file_access)
|
self.btn_start_empty.setEnabled(file_access)
|
||||||
|
|||||||
2
setup.py
2
setup.py
@@ -19,7 +19,7 @@ class MyEggInfo(distutils.command.install_egg_info.install_egg_info):
|
|||||||
|
|
||||||
|
|
||||||
setup(
|
setup(
|
||||||
version="0.9.3",
|
version="0.9.3b",
|
||||||
python_requires="~=3.4",
|
python_requires="~=3.4",
|
||||||
requires=["PyQt5", "revpimodio2", "zeroconf"],
|
requires=["PyQt5", "revpimodio2", "zeroconf"],
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user