Silent mode if using scripts
When using a script, the command line mode prints less debug output and less things in general, to avoid cluttering the output with unwanted things.
This commit is contained in:
@@ -121,9 +121,10 @@ if __name__ == "__main__":
|
||||
form.show()
|
||||
sys.exit(app.exec_())
|
||||
else:
|
||||
printver(False)
|
||||
try:
|
||||
import relational_readline.linegui
|
||||
if relational_readline.linegui.TTY:
|
||||
printver(False)
|
||||
except:
|
||||
print (
|
||||
"Module relational_readline is missing.\nPlease install relational-cli package.",
|
||||
|
Reference in New Issue
Block a user