open a file with name= fileName
fileName could contain $Variable, this will be interpret with os.environ.get(‘$Variable’)
if os = windows and filename start with ‘/’ than add //samba