Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/usr/bin/python
- class test:
- from platform import system
- is_linux(self):
- system = system()
- if system == "Linux": return True
- #!/usr/bin/python
- # Add ANSI colour strings
- class stdout:
- from sys import stdout
- def message(message, self): stdout.write(message)
- class test:
- from platform import system
- class test:
- def system():
- # ....
- class test:
- from platform import system
- system = staticmethod(system)
- import foo
- import bar
- def fun(param1, param2):
- # .....
- if __name__ == '__main__':
- from sys import argv
- if len(argv) > 2:
- fun(argv[1], argv[2])
Add Comment
Please, Sign In to add comment