Skip to content

my windows 10 loads module differently.  #3

Description

@perryism
def src_to_module(src):
    execute_path = os.getcwd()
    relative = src.replace(execute_path, "")
    path = Path(relative).parent
    fragments = str(path).split(os.sep)
    return ".".join(fragments)

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