Skip to content

lua511/py_smart_append_path

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 

Repository files navigation

1

may,use like this

2

dir1:
    file1.py
dir2:
    file2.py

3

file2.py:

import file1

4

python dir2/file2.py

you will got: ERROR,ERROR,ERROR ...

5

file2.py

if __name__ == '__main__':
    import smart_append_path
    smart_append_path.append_top1(__file__)

About

fix import problem while python dirty test

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages