Spaces:
Build error
Build error
# -*- coding: utf-8 -*- | |
import sys | |
# Before any more imports, leave cwd out of sys.path for internal 'conda shell.*' commands. | |
# see https://github.com/conda/conda/issues/6549 | |
if len(sys.argv) > 1 and sys.argv[1].startswith('shell.') and sys.path and sys.path[0] == '': | |
# The standard first entry in sys.path is an empty string, | |
# and os.path.abspath('') expands to os.getcwd(). | |
del sys.path[0] | |
if __name__ == '__main__': | |
from conda.cli import main | |
sys.exit(main()) | |