Commit.
This commit is contained in:
parent
cdc99c193d
commit
947ee18cc9
|
@ -8,7 +8,7 @@ from unittest import TestSuite, TestLoader
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
import sys
|
import sys
|
||||||
|
|
||||||
if sys.stdin.isatty():
|
if sys.stderr.isatty():
|
||||||
print('终端模式')
|
print('终端模式')
|
||||||
else:
|
else:
|
||||||
print('GUI模式')
|
print('GUI模式')
|
||||||
|
|
Loading…
Reference in New Issue