# autosyspath **Repository Path**: dragons96/autosyspath ## Basic Information - **Project Name**: autosyspath - **Description**: 一个Python自动添加项目位置到sys.path的工具 - **Primary Language**: Unknown - **License**: Apache-2.0 - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 1 - **Forks**: 0 - **Created**: 2022-05-12 - **Last Updated**: 2022-07-05 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # AutoSysPath ## A python automatically adds the current project sys path tool ### Chinese ## Install: ```shell pip install toautosyspath ``` ## Example: example-project:     - package1         - `__init__`.py         - main.py     - package2         - `__init__`.py         - util.py at main.py ```python import autosyspath from package2.util import helloworld helloworld() ```

You can run anywhere main.py without error.

example:

    > cd /example-project && python package1/main.py

    > cd / && python example-project/package1/main.py

    > cd /example-project/package1 && python main.py

    > cd /xxx && python /example-project/package1/main.py

that's all ok.