Add a simple run script. Entry point for IDE debuger

pull/2187/head
nicolargo 2022-11-05 10:04:23 +01:00
parent 0976da8a28
commit 91b6b4aff7
1 changed files with 8 additions and 0 deletions

8
run.py Executable file
View File

@ -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())