I work in both a Windows 7 and 10 environment and the file locations don't match up. I'm trying to write a Sikuli script that will go in, check which Windows version is being used (7 or 10) and then proceed. I attempted to use:
import os
if os.name == 'nt':
print "windows10"
else:
print "windows7"
but I'm honestly stuck, what's the easiest way to go about this? Any information will help! Attempted to use this as well but my results are java or Java. Maybe I'm not implementing it right?
import os
print os.name
# result = java
import platform
print platform.system()
#result = Java