File tree Expand file tree Collapse file tree 1 file changed +14
-3
lines changed Expand file tree Collapse file tree 1 file changed +14
-3
lines changed Original file line number Diff line number Diff line change 11import os
2+ import sys
23
3- print ("""
4+ def get_clear_command ():
5+ clear_command = {
6+ "win32" : "cls" ,
7+ "linux" : "clear"
8+ }
9+ return clear_command [sys .platform ]
10+
11+ def clear ():
12+ os .system (get_clear_command ())
13+ print ("""
414 ____
515 / __ \__ ______ ___ _ __
616 / /_/ / / / / __ \/ _ \| |/_/
@@ -15,7 +25,7 @@ def boot():
1525
1626else :
1727done_count = 0
18- file = open ("pypi.txt" , "r" )
28+ file = open ("./ pypi.txt" , "r" )
1929line_count = 0
2030for line in file :
2131if line != "\n " :
@@ -24,7 +34,7 @@ def boot():
2434for content in file .readlines ():
2535os .spawnl (os .P_DETACH , f'pip install { content } ' )
2636done_count = done_count + 1
27- os .system ("clear" )
37+ os .system (get_clear_command () )
2838print (f"""
2939 ____
3040 / __ \__ ______ ___ _ __
@@ -38,4 +48,5 @@ def boot():
3848with open ('.installed' , 'w' ) as f :
3949f .write ('Pynex installed pypi packages.' )
4050
51+ clear ()
4152boot ()
You can’t perform that action at this time.
0 commit comments