Commit c2d67acd authored by Fabrice Salvaire's avatar Fabrice Salvaire

QmlApplication: fix error logging in user script

parent 42bb72cb
......@@ -33,6 +33,7 @@ __all__ = [
import argparse
import logging
import sys
import traceback
from pathlib import Path
# Fixme:
......@@ -306,6 +307,6 @@ class Application(QObject):
bytecode = compile(source, script_path, 'exec')
exec(bytecode, {'application':self})
except Exception as exception:
sys.exit(1)'User script done')
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment