don't traceback when there is no temp folder. Fixes #4629

This commit is contained in:
Yann Leboulanger 2009-01-21 07:14:03 +00:00
parent 49925786c2
commit 109c9d1004
1 changed files with 6 additions and 1 deletions

View File

@ -121,7 +121,12 @@ class ConfigPaths:
datadir = u'..'
self.add('DATA', os.path.join(datadir, windowsify(u'data')))
self.add('HOME', fse(os.path.expanduser('~')))
self.add('TMP', fse(tempfile.gettempdir()))
try:
self.add('TMP', fse(tempfile.gettempdir()))
except IOError, e:
print >> sys.stderr, 'Error opening tmp folder: %s\nUsing %s' % (
str(e), os.path.expanduser('~'))
self.add('TMP', fse(os.path.expanduser('~')))
try:
import svn_config