2009-08-11, 14:31
hello
Have a little problem with this code ....
Under linux it is working
Under windows the functions should return the path to the user
but allways returns 'NONE'
Where is the point I miss ?
Regards
Hans
Have a little problem with this code ....
Code:
# Check if the user allready accepted the EULA
if (os_linux):
eula_path = os.getenv("HOME") + '/EULA_blue-pill-accepted'
eula = os.path.exists(eula_path)
print 'eula was accepted for linux'
if (os_windows):
eula_path = str(os.getenv("USERPROFILE")) + '\\EULA_blue-pill-accepted'
print eula_path
eula = os.path.exists(eula_path)
print 'eula was accepted for windows'
Under linux it is working
Under windows the functions should return the path to the user
but allways returns 'NONE'
Where is the point I miss ?
Regards
Hans