Skip to content

Commit

Permalink
Merge pull request #67 from th3xer0/clear_console_fix
Browse files Browse the repository at this point in the history
Fixed screen / console clearing to allow to run on OSX.
  • Loading branch information
Mila432 authored Jul 19, 2016
2 parents 76e647e + 7b2b7f1 commit f3aa8cc
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion main.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,10 +42,11 @@ def get_acces_token(usr,pws,type):
return access_token,ltype

def main():
if 'nux' not in platform.system():
if platform.system() == 'Windows':
os.system("title Pokemon GO API Python")
os.system("cls")
else:
# Catches "Lunux" and "Darwin" (OSX), among others
os.system("clear")
parser = argparse.ArgumentParser()
parser.add_argument("-u", "--username", help="Login", default=None)
Expand Down

0 comments on commit f3aa8cc

Please sign in to comment.