Add standardpaths_tester.py
This commit is contained in:
parent
8acd014d39
commit
544c508fac
18
scripts/dev/standardpaths_tester.py
Normal file
18
scripts/dev/standardpaths_tester.py
Normal file
@ -0,0 +1,18 @@
|
||||
import os
|
||||
import sys
|
||||
|
||||
from PyQt5.QtCore import (QT_VERSION_STR, PYQT_VERSION_STR, qVersion,
|
||||
QStandardPaths)
|
||||
|
||||
print("Python {}".format(sys.version))
|
||||
print("os.name: {}".format(os.name))
|
||||
print("sys.platform: {}".format(sys.platform))
|
||||
print()
|
||||
|
||||
print("Qt {}, compiled {}".format(qVersion(), QT_VERSION_STR))
|
||||
print("PyQt {}".format(PYQT_VERSION_STR))
|
||||
print()
|
||||
|
||||
for name, obj in vars(QStandardPaths).items():
|
||||
if isinstance(obj, QStandardPaths.StandardLocation):
|
||||
print("{:25} {}".format(name, QStandardPaths.writableLocation(obj)))
|
Loading…
Reference in New Issue
Block a user