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()
|
||||
procimg_file = self.txt_procimg.text()
|
||||
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.btn_start_pictory.setEnabled(file_access)
|
||||
self.btn_start_empty.setEnabled(file_access)
|
||||
|
||||
Reference in New Issue
Block a user