mirror of
https://github.com/soimort/you-get.git
synced 2025-02-12 04:55:21 +03:00
add color.__init__
This commit is contained in:
parent
c183d1143f
commit
2904eeb160
23
src/you_get/util/color/__init__.py
Normal file
23
src/you_get/util/color/__init__.py
Normal file
@ -0,0 +1,23 @@
|
||||
# -*- Coding:utf-8 -*-
|
||||
#!/usr/bin/env python3
|
||||
|
||||
"""
|
||||
################################################################################
|
||||
Provide Color Support for all kinds of shell Stdio
|
||||
main API :
|
||||
color.color_dict
|
||||
color.print_map
|
||||
|
||||
color.print_info
|
||||
color.print_ok
|
||||
color.print_warn or print_warning
|
||||
color.print_err or print_error
|
||||
################################################################################
|
||||
"""
|
||||
|
||||
import platform
|
||||
def iswin():
|
||||
return platform.platform().upper().startswith('WIN')
|
||||
|
||||
def islinux():
|
||||
return platform.platform().upper().startswith('LINUX')
|
Loading…
Reference in New Issue
Block a user