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

Generate __init__ only if it does not exist #68

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

JR-1991
Copy link
Collaborator

@JR-1991 JR-1991 commented May 15, 2024

Overview

As highlighted in #67 the __init__.py generate at the top-level of a generated library, does not respect additions. This PR fixes the issue, by only creating the __init__.py if none exists. Since this file typically contains nothing upon generation, this PR only uses an if-condition to make it work. Keep it simple :)

TLDR

  • Only generate library/__init__.py if no-existent

Closes #67

@JR-1991 JR-1991 added the bug Something isn't working label May 15, 2024
@JR-1991 JR-1991 self-assigned this May 15, 2024
@JR-1991 JR-1991 linked an issue May 15, 2024 that may be closed by this pull request
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

Successfully merging this pull request may close these issues.

Highest module __init__.py file
1 participant