Skip to content

Module resolution bug based on mistake! #5

Open
@R9295

Description

@R9295

https://github.com/R9295/panoptisch/blob/master/panoptisch/scanner.py#L68

# scanner.py
    elif os.path.isdir(module_as_dir):
        if not is_part_of_module:
            # this check matters as a simple script cannot
            # import another script in a folder if the folder does not have
            # an __init__.py (making it a module)

This clause is based on a false statement!
It is possible to import a script in another folder if the folder does not have an __init__.py

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions