Skip to content

dragons96/AutoSysPath

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

AutoSysPath

A python automatically adds the current project sys path tool

Install:

pip install toautosyspath 

Example:

example-project:
    - package1
        - __init__.py
        - main.py
    - package2
        - __init__.py
        - util.py

at main.py

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.

About

A python automatically adds the current project sys Path tool

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages