Skip to content

Commit

Permalink
[#367] correct commit for fixing reveal file for Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
quicklizard99 committed Oct 25, 2016
1 parent 39084d5 commit 5c012c4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion inselect/gui/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,7 @@ def reveal_path(path):
# http://stackoverflow.com/a/3546503
path = path.resolve()
if sys.platform.startswith("win"):
res = subprocess.call(["explorer.exe", u"/select,{0}".format(path)])
res = subprocess.call(u"explorer.exe /select,{0}".format(path))
if 1 != res:
raise ValueError('Unexpected exit code [{0}]'.format(res))
elif 'Darwin' == platform.system():
Expand Down
2 changes: 1 addition & 1 deletion inselect/lib/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ def user_name():
"""
if pwd:
# Strip trailing commas seen on Linux
return unicode(pwd.getpwuid(os.getuid()), 'utf8').pw_gecos.rstrip(',')
return pwd.getpwuid(os.getuid()).pw_gecos.rstrip(',')
else:
try:
import pywintypes
Expand Down

0 comments on commit 5c012c4

Please sign in to comment.