Thank you for getting adventurous

Below you will find a random blog post out of the creatronix space. Have fun while reading and learning something new!

How to work with the Python os module

Motivation When you are dealing with files and directories or operating system version and environment variables the os module needs to become your friend os Get current working directory import os print(os.getcwd()) Get platform info os.name == “nt”   # Windows os.name == “posix” #  Linux and macOS Get environment variables assert os.environ.get(“FOO”) == “BAR” os.path…

Read more

More posts

See the latest blogposts about code and business and everything inbetween.