Skip to content

Commit

Permalink
Merge from 3.x: PR #4311
Browse files Browse the repository at this point in the history
  • Loading branch information
ccordoba12 committed Apr 3, 2017
2 parents bc13350 + 061d2b8 commit 138361a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion spyder/utils/programs.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
from __future__ import print_function

from distutils.version import LooseVersion
from getpass import getuser
import imp
import inspect
import os
Expand All @@ -30,7 +31,7 @@ class ProgramError(Exception):
if os.name == 'nt':
TEMPDIR = tempfile.gettempdir() + osp.sep + 'spyder'
else:
username = encoding.to_unicode_from_fs(os.environ.get('USER'))
username = encoding.to_unicode_from_fs(getuser())
TEMPDIR = tempfile.gettempdir() + osp.sep + 'spyder-' + username


Expand Down

0 comments on commit 138361a

Please sign in to comment.