<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Cross-platform on Nerdsid.com</title><link>https://nerdsid.com/tags/cross-platform/</link><description>Recent content in Cross-platform on Nerdsid.com</description><generator>Hugo</generator><language>en-us</language><lastBuildDate>Fri, 28 Oct 2022 23:33:25 +0530</lastBuildDate><atom:link href="https://nerdsid.com/tags/cross-platform/index.xml" rel="self" type="application/rss+xml"/><item><title>Detecting OS and Platform Using Python</title><link>https://nerdsid.com/posts/detecting-os-and-platform-using-python/</link><pubDate>Fri, 28 Oct 2022 23:33:25 +0530</pubDate><guid>https://nerdsid.com/posts/detecting-os-and-platform-using-python/</guid><description>&lt;p>There are some circumstances where developing platform-specific code is simply unavoidable, either because a high-level library is not available or because the actions that must be taken are fundamentally different.&lt;/p>
&lt;p>In this situation, it is essential to detect the platform.&lt;/p>
&lt;p>There are a few ways of doing this in Python, including &lt;code>os.system()&lt;/code> and &lt;code>sys.platform&lt;/code>, but the &lt;code>platform&lt;/code> module contains the best set of functionality for determining the OS details most useful in making decisions.&lt;/p></description></item></channel></rss>