File tree Expand file tree Collapse file tree 4 files changed +25
-16
lines changed Expand file tree Collapse file tree 4 files changed +25
-16
lines changed Original file line number Diff line number Diff line change 6
6
<a href =" https://waffle.io/sepandhaghighi/qpage " ><img src =" https://badge.waffle.io/sepandhaghighi/qpage.png?label=ready&title=Ready " /></a >
7
7
<a href =" http://www.qpage.ir/doc " ><img src =" https://img.shields.io/badge/doc-latest-orange.svg " ></a >
8
8
<a href =" https://www.codacy.com/app/sepand-haghighi/qpage?utm_source=github.com& ; utm_medium=referral& ; utm_content=sepandhaghighi/qpage& ; utm_campaign=Badge_Coverage " ><img src =" https://api.codacy.com/project/badge/Coverage/4d3f9b490b9a42c282b745ae8e2a122c " /></a >
9
+
9
10
</div >
10
11
<hr />
11
12
<div align =" center " >
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 66
66
files = []
67
67
warnings = []
68
68
today_time = str (datetime .date .today ()) # Get Today Date By datetime module
69
+
70
+
71
+ LOGO = '''
72
+ ____ ___
73
+ / __ \ / _ \___ ____ ____
74
+ / /_/ / / ___/ _ `/ _ `/ -_)
75
+ \___\_\/_/ \_,_/\_, /\__/
76
+ /___/
77
+ '''
Original file line number Diff line number Diff line change 17
17
18
18
def show_items (enum_list ):
19
19
""" show item of enum_list
20
-
21
20
:param enum_list the list that should be shown
22
21
:type enum_list : list
23
22
"""
24
23
for i , item in enumerate (enum_list ): # print errors
25
24
print (str (i + 1 ) + "-" + item ) # print pass
26
25
27
26
28
- def print_logo ():
29
- """ print qpage logo by characters
30
-
31
- """
32
- if "logo.txt" in os .listdir (RESOURCE_DIR ):
33
- logo_path = os .path .join (RESOURCE_DIR , 'logo.txt' )
34
- with open (logo_path , "r" ) as logo_file :
35
- for line in logo_file :
36
- print (line .rstrip ())
27
+ def print_logo (external = False ):
28
+ '''
29
+ print qpage logo by characters
30
+ :param external: bool , choose internal or external logo
31
+ :return: None
32
+ '''
33
+ if external == True :
34
+ if "logo.txt" in os .listdir (RESOURCE_DIR ):
35
+ logo_path = os .path .join (RESOURCE_DIR , 'logo.txt' )
36
+ with open (logo_path , "r" ) as logo_file :
37
+ for line in logo_file :
38
+ print (line .rstrip ())
39
+ else :
40
+ pass
37
41
else :
38
- pass
42
+ print ( LOGO )
39
43
40
44
41
45
def convert_bytes (num ):
You can’t perform that action at this time.
0 commit comments