Determines the OS is Linux by using sys.platform Returns True if Linux :return: True if sys.platform indicates running Linux :rtype: (bool)
()
| 272 | |
| 273 | |
| 274 | def running_linux(): |
| 275 | """ |
| 276 | Determines the OS is Linux by using sys.platform |
| 277 | |
| 278 | Returns True if Linux |
| 279 | |
| 280 | :return: True if sys.platform indicates running Linux |
| 281 | :rtype: (bool) |
| 282 | """ |
| 283 | return sys.platform.startswith('linux') |
| 284 | |
| 285 | |
| 286 | def running_mac(): |
no outgoing calls
no test coverage detected