deb#719941: pythonscript.py: use open() instead of file()
Change-Id: Ib9f06b2b5629d149e932fe37312fdf5e8448c39f
This commit is contained in:
parent
03a2bb6cd8
commit
83f4be4740
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user