avoid console popup

This commit is contained in:
j 2016-02-01 01:02:02 +05:30
parent 0e3794e6a3
commit e58f5b1e95
1 changed files with 1 additions and 2 deletions

View File

@ -369,8 +369,7 @@ def open_folder(folder=None, path=None):
cmd += ['xdg-open', folder]
elif sys.platform == 'win32':
path = '\\'.join(path.split('/'))
os.system('explorer.exe /select,"%s"' % path)
cmd = []
cmd = 'explorer.exe /select,"%s"' % path
else:
logger.debug('unsupported platform %s', sys.platform)
if cmd: