strong text I want to open the file in web browser in different platforms, I did for #Mac and #linux, but my problem is I do not know for windows. Here my code:
f = open(orginal_filename, "r")
if os.name == "darwin": #Mac
sp.Popen(["open", orginal_filename])
elif os.name=='posix': #linux
sp.Popen(["firefox", orginal_filename])
elif os.name=="nt": #win
sp.Popen(["?????", orginal_filename])