Removing path from Python search module path

前端 未结 3 1022
无人及你
无人及你 2020-12-08 14:24

I understand that sys.path refers to

  1. OS paths that have your system libraries. I take it that these refer to /lib in *nix or Wi
3条回答
  •  南方客
    南方客 (楼主)
    2020-12-08 14:41

    Use

    sys.path.append('path/to/file')
    

    instead of

    sys.path.append('path/to/file/')
    

    Same with sys.path.remove().

提交回复
热议问题