Guest User

Untitled

a guest
Jul 22nd, 2018
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.62 KB | None | 0 0
  1. #!/usr/bin/python
  2.  
  3. class test:
  4. from platform import system
  5. is_linux(self):
  6. system = system()
  7. if system == "Linux": return True
  8.  
  9. #!/usr/bin/python
  10.  
  11. # Add ANSI colour strings
  12. class stdout:
  13. from sys import stdout
  14. def message(message, self): stdout.write(message)
  15.  
  16. class test:
  17. from platform import system
  18.  
  19. class test:
  20. def system():
  21. # ....
  22.  
  23. class test:
  24. from platform import system
  25. system = staticmethod(system)
  26.  
  27. import foo
  28. import bar
  29.  
  30. def fun(param1, param2):
  31. # .....
  32.  
  33. if __name__ == '__main__':
  34. from sys import argv
  35. if len(argv) > 2:
  36. fun(argv[1], argv[2])
Add Comment
Please, Sign In to add comment