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:
Salvo 'LtWorf' Tomaselli
2015-11-06 16:03:58 +01:00
parent 643adf4d0a
commit 87e2c76468
2 changed files with 23 additions and 9 deletions

View File

@@ -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.",