Kaydet (Commit) 83f4be47 authored tarafından Rene Engelhard's avatar Rene Engelhard

deb#719941: pythonscript.py: use open() instead of file()

Change-Id: Ib9f06b2b5629d149e932fe37312fdf5e8448c39f
üst 03a2bb6c
......@@ -78,7 +78,7 @@ def getLogTarget():
userInstallation = pathSubst.getSubstituteVariableValue( "user" )
if len( userInstallation ) > 0:
systemPath = uno.fileUrlToSystemPath( userInstallation + "/Scripts/python/log.txt" )
ret = file( systemPath , "a" )
ret = open( systemPath , "a" )
except:
print("Exception during creation of pythonscript logfile: "+ lastException2String() + "\n, delagating log to stdout\n")
return ret
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment