Lines Matching refs:self
29 def __init__(self, platform):
30 self._platform = platform
31 if self._platform is not None:
33 self._platform = sys.platform
34 if self._platform.startswith('linux'):
35 self._platform = 'linux'
36 elif self._platform.startswith('darwin'):
37 self._platform = 'darwin'
38 elif self._platform.startswith('mingw'):
39 self._platform = 'mingw'
40 elif self._platform.startswith('msys'):
41 self._platform = 'msys'
42 elif self._platform.startswith('win'):
43 self._platform = 'msvc'
44 elif self._platform.startswith('aix'):
45 self._platform = 'aix'
46 elif self._platform.startswith('fuchsia'):
47 self._platform = 'fuchsia'
48 elif self._platform.startswith('freebsd'):
49 self._platform = 'freebsd'
50 elif self._platform.startswith('netbsd'):
51 self._platform = 'netbsd'
52 elif self._platform.startswith('openbsd'):
53 self._platform = 'openbsd'
54 elif self._platform.startswith('haiku'):
55 self._platform = 'haiku'
56 elif self._platform.startswith('sunos'):
57 self._platform = 'solaris'
58 elif self._platform.startswith('zos'):
59 self._platform = 'zos'
60 elif self._platform.startswith('serenity'):
61 self._platform = 'serenity'
67 def platform(self):
68 return self._platform
70 def is_linux(self):
71 return self._platform == 'linux'
73 def is_mingw(self):
74 return self._platform == 'mingw'
76 def is_msys(self):
77 return self._platform == 'msys'
79 def is_msvc(self):
80 return self._platform == 'msvc'
82 def is_windows(self):
83 return self.is_mingw() or self.is_msvc()
85 def is_darwin(self):
86 return self._platform == 'darwin'
88 def is_aix(self):
89 return self._platform == 'aix'
91 def is_haiku(self):
92 return self._platform == 'haiku'
94 def is_solaris(self):
95 return self._platform == 'solaris'
97 def is_posix(self):
98 return self._platform in ['linux', 'freebsd', 'darwin', 'aix', 'openbsd', 'haiku', 'solaris', 'msys', 'netbsd', 'serenity']
100 def is_zos(self):
101 return self._platform == 'zos'
103 def is_serenity(self):
111 def __init__(self):
112 self._arguments = []
114 def add(self, *args, **kwargs):
116 self._arguments.append((args, kwargs))
118 def add_to_parser(self, parser):
120 for args, kwargs in self._arguments:
123 def gen_command_line_args(self, parser_arguments):
126 for args, kwargs in self._arguments: