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

single tnz.zti.Zti class #26

Merged
merged 1 commit into from
Jun 3, 2022
Merged

single tnz.zti.Zti class #26

merged 1 commit into from
Jun 3, 2022

Conversation

najohnsn
Copy link
Member

@najohnsn najohnsn commented Jun 3, 2022

Starting zti with python -m tnz.zti would create a __main__.Zti class. If any programs later did a from tnz import zti, python would create a second Zti class: tnz.zti.Zti. Since there are two different classes, there are 2 sets of static data - that is not the intention. This PR fixes this by never running directly from __main__... it is instead routed to tnz.zti.

@najohnsn najohnsn self-assigned this Jun 3, 2022
@najohnsn najohnsn merged commit 67b9d62 into main Jun 3, 2022
@najohnsn najohnsn deleted the single-Zti branch August 26, 2022 19:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant