diff --git a/osc/commandline.py b/osc/commandline.py index 8db89bf8..0b028456 100644 --- a/osc/commandline.py +++ b/osc/commandline.py @@ -7859,7 +7859,7 @@ Please submit there instead, or use --nodevelproject to force direct submission. if not extfile.endswith('.py'): continue try: - exec(open(os.path.join(plugin_dir, extfile))) + exec(open(os.path.join(plugin_dir, extfile)).read()) except SyntaxError as e: if (os.environ.get('OSC_PLUGIN_FAIL_IGNORE')): print("%s: %s\n" % (plugin_dir, e), file=sys.stderr)