diff options
author | nicolargo <nicolas@nicolargo.com> | 2022-11-05 10:04:23 +0100 |
---|---|---|
committer | nicolargo <nicolas@nicolargo.com> | 2022-11-05 10:04:23 +0100 |
commit | 91b6b4aff758d50bc100df823f9422596c2feb51 (patch) | |
tree | 509c946e1582cd2869a905b2458c9d441f013d4a /run.py | |
parent | 0976da8a2840461c29ad9cd68255404c014ce27d (diff) |
Add a simple run script. Entry point for IDE debuger
Diffstat (limited to 'run.py')
-rwxr-xr-x | run.py | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -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()) |