Is there an easy way to let a python program check if it running on the raspberry Pi or the pc running windows? I would like to use this to automaticly use the rpi.gpio functions in my code.
I am looking for a similair implementations as i use for debug modes:
if __debug__: import [some library]
I already found some examples that use os.uname(), but after testing this in python3 idle i found out that this was not working for me.
Does anybody know a good and simple way to implement this?