Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

4
  • Which path do you want to get? Commented Jul 14, 2017 at 19:15
  • 1
    Your question is not detailed enough, and does not show a lot of search efforts on your side. Please consider reviewing the web and then come back here with your failed code attempts. Commented Jul 14, 2017 at 19:15
  • If you just want to know the operating system, use sys.platform. And your question doesn't provide enough detail Commented Jul 14, 2017 at 19:16
  • Coldspeed - The environment is running multiple different OS. Everything from Vista to Windows 10. I was hoping to find a way to dynamically learn what the Desktop Path variable is set to. (i.e. the Windows Desktop). Since I'm already able to find the home directory in Linux, I'm also trying to figure out how to determine which OS is running and build out different configuration settings based on the environment. Commented Jul 14, 2017 at 19:22