Skip to content

代码优化建议 #93

Description

@y9y2x8sz

dirmap.py

原来代码:

    paths.ROOT_PATH = os.getcwd() 
    setPaths()

可以修改成这样,这样在使用alias的时候获取的配置文件路径就是dirmap.py的路径,能实现在任意目录调用dirmap.py进行扫描。

    paths.ROOT_PATH = os.path.dirname(os.path.abspath(__file__)) 
    setPaths()

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions