panoptisch icon indicating copy to clipboard operation
panoptisch copied to clipboard

Module resolution bug based on mistake!

Open R9295 opened this issue 3 years ago • 0 comments

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

R9295 avatar Dec 14 '22 17:12 R9295