Skip to content
Snippets Groups Projects
Commit 109c9d10 authored by Yann Leboulanger's avatar Yann Leboulanger
Browse files

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

parent 49925786
No related branches found
No related tags found
No related merge requests found
...@@ -121,7 +121,12 @@ class ConfigPaths: ...@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment