mirror of
https://github.com/xonsh/xonsh.git
synced 2025-03-04 08:24:40 +01:00
Deal with leading backslash, too
This commit is contained in:
parent
d8bc83cd51
commit
2e24b9a698
1 changed files with 1 additions and 1 deletions
|
@ -198,7 +198,7 @@ class Vox(collections.abc.Mapping):
|
|||
env_path = builtins.__xonsh_env__['VIRTUAL_ENV']
|
||||
if env_path.startswith(self.venvdir):
|
||||
name = env_path[len(self.venvdir):]
|
||||
if name[0] == '/':
|
||||
if name[0] in '/\\':
|
||||
name = name[1:]
|
||||
return name
|
||||
else:
|
||||
|
|
Loading…
Add table
Reference in a new issue