Check os type

linkaiyi
Follow

check os type in python

import os
if os.name == 'nt': # windows
if os.name == 'posix': # linux
Object has 0 attachments

Was this article helpful?

This article is viewed 16 times!

Recent Viewed Articles

Related Articles

0 Comments

Leave a Comment

Support