don't traceback when there is no temp folder. Fixes #4629
This commit is contained in:
parent
49925786c2
commit
109c9d1004
|
@ -121,7 +121,12 @@ class ConfigPaths:
|
||||||
datadir = u'..'
|
datadir = u'..'
|
||||||
self.add('DATA', os.path.join(datadir, windowsify(u'data')))
|
self.add('DATA', os.path.join(datadir, windowsify(u'data')))
|
||||||
self.add('HOME', fse(os.path.expanduser('~')))
|
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:
|
try:
|
||||||
import svn_config
|
import svn_config
|
||||||
|
|
Loading…
Reference in New Issue