Merge pull request #2471 from xonsh/logicerr

stupid file extension logic error
This commit is contained in:
Gil Forsyth 2017-08-10 08:50:13 -04:00 committed by GitHub
commit aa812cde6e

View file

@ -286,7 +286,7 @@ def source_alias(args, stdin=None):
'does not exist.')
break
_, fext = os.path.splitext(fpath)
if fext and (fext != '.xsh' or fext != '.py'):
if fext and fext != '.xsh' and fext != '.py':
raise RuntimeError('attempting to source non-xonsh file! If you are '
'trying to source a file in another language, '
'then please use the appropriate source command. '