mirror of
https://github.com/xonsh/xonsh.git
synced 2025-03-04 16:34:47 +01:00
stupid file extension logic error
This commit is contained in:
parent
090bfa2456
commit
6cf20b25a9
1 changed files with 1 additions and 1 deletions
|
@ -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. '
|
||||
|
|
Loading…
Add table
Reference in a new issue