update-geoinfos: use shutil.move (cross-device mv) (#5831)

This commit is contained in:
Thomas NOËL 2014-10-30 16:10:40 +01:00
parent f9299058d1
commit 6ef1aac11c
1 changed files with 2 additions and 1 deletions

View File

@ -20,6 +20,7 @@ from django.core.management.base import BaseCommand, CommandError
import os
import sys
import shutil
from sp import pfconfigxml
import urllib2
import json
@ -103,5 +104,5 @@ class Command(BaseCommand):
json.dump(geoinfos, f, indent=2)
f.write('\n')
os.rename(tempfilename, GEOINFOS_JS)
shutil.move(tempfilename, GEOINFOS_JS)