mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2025-12-05 01:46:46 +01:00
Remove current directory from sys.path in python invocations (#8408)
* Remove current directory from sys.path in python invocations
This commit is contained in:
parent
b80b1a1e8b
commit
1c98b9cc38
4 changed files with 15 additions and 11 deletions
|
|
@ -374,7 +374,8 @@ _managepy-commands() {
|
|||
_applist() {
|
||||
local line
|
||||
local -a apps
|
||||
_call_program help-command "python -c \"import os.path as op, re, django.conf, sys;\\
|
||||
_call_program help-command "python -c \"import sys; del sys.path[0];\\
|
||||
import os.path as op, re, django.conf;\\
|
||||
bn=op.basename(op.abspath(op.curdir));[sys\\
|
||||
.stdout.write(str(re.sub(r'^%s\.(.*?)$' %
|
||||
bn, r'\1', i)) + '\n') for i in django.conf.settings.\\
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue