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

Change-Id: Ib9f06b2b5629d149e932fe37312fdf5e8448c39f
This commit is contained in:
Rene Engelhard 2013-08-21 10:11:14 +02:00
parent 03a2bb6cd8
commit 83f4be4740

View File

@ -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