From 91b6b4aff758d50bc100df823f9422596c2feb51 Mon Sep 17 00:00:00 2001 From: nicolargo Date: Sat, 5 Nov 2022 10:04:23 +0100 Subject: Add a simple run script. Entry point for IDE debuger --- run.py | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100755 run.py diff --git a/run.py b/run.py new file mode 100755 index 00000000..5816aaad --- /dev/null +++ b/run.py @@ -0,0 +1,8 @@ +#!/usr/bin/python +# -*- coding: utf-8 -*- +import re +import sys +from glances import main +if __name__ == '__main__': + sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0]) + sys.exit(main()) -- cgit v1.2.3