Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Module resolution bug based on mistake! #5

Open
R9295 opened this issue Dec 14, 2022 · 0 comments
Open

Module resolution bug based on mistake! #5

R9295 opened this issue Dec 14, 2022 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@R9295
Copy link
Owner

R9295 commented Dec 14, 2022

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 R9295 added the bug Something isn't working label Dec 14, 2022
@R9295 R9295 self-assigned this Dec 14, 2022
@R9295 R9295 changed the title Module resolution error based on mistake! Module resolution bug based on mistake! Dec 14, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant