import platform
if 'Windows' in platform.system():
xxx_file = 'E:/tmp/xxx_file.txt'
elif 'Linux' in platform.system():
xxx_file = '/tmp/xxx_file.txt'
with open(xxx_file , 'w', encoding='utf-8') as foo:
foo.write('true')
import platform
if 'Windows' in platform.system():
xxx_file = 'E:/tmp/xxx_file.txt'
elif 'Linux' in platform.system():
xxx_file = '/tmp/xxx_file.txt'
with open(xxx_file , 'w', encoding='utf-8') as foo:
foo.write('true')