Mercurial > hg > truffle
diff mx/commands.py @ 8183:4b11a0983557
fixed issue with deleting temp files on Windows
author | Doug Simon <doug.simon@oracle.com> |
---|---|
date | Fri, 08 Mar 2013 16:57:46 +0100 |
parents | e0db99483b35 |
children | 74896b25297a |
line wrap: on
line diff
--- a/mx/commands.py Fri Mar 08 15:58:08 2013 +0100 +++ b/mx/commands.py Fri Mar 08 16:57:46 2013 +0100 @@ -386,8 +386,9 @@ jreLibDir = join(jdks, e, 'jre', 'lib') if exists(jreLibDir): # do a copy and then a move to get atomic updating (on Unix) of graal.jar in the JRE - _, tmp = tempfile.mkstemp(suffix='', prefix='graal.jar', dir=jreLibDir) + fd, tmp = tempfile.mkstemp(suffix='', prefix='graal.jar', dir=jreLibDir) shutil.copyfile(graalJar, tmp) + os.close(fd) shutil.move(tmp, join(jreLibDir, 'graal.jar')) # run a command in the windows SDK Debug Shell