From 52640b4b70834e8a40582432b8d3df29f6613d02 Mon Sep 17 00:00:00 2001 From: Brandon Rodriguez <brodriguez8774@gmail.com> Date: Wed, 4 Dec 2019 01:34:14 -0500 Subject: [PATCH] Update __init__ importing to be more library friendly Uses same logic as "graph library" __init__ files --- __init__.py | 12 ++++++++++++ resources/__init__.py | 12 ++++++++++++ resources/simplex/__init__.py | 12 ++++++++++++ 3 files changed, 36 insertions(+) diff --git a/__init__.py b/__init__.py index e69de29..2846263 100644 --- a/__init__.py +++ b/__init__.py @@ -0,0 +1,12 @@ +""" +Project base importing definitions. +""" + +# Import files/values we want to be available to other folders. +from .resources import * + + +# Define imports when using the * flag on this folder. +__all__ = [ + 'Simplex', +] diff --git a/resources/__init__.py b/resources/__init__.py index e69de29..dfc7208 100644 --- a/resources/__init__.py +++ b/resources/__init__.py @@ -0,0 +1,12 @@ +""" +"Resources" folder importing definitions. +""" + +# Import files/values we want to be available to other folders. +from .simplex import * + + +# Define imports when using the * flag on this folder. +__all__ = [ + 'Simplex', +] diff --git a/resources/simplex/__init__.py b/resources/simplex/__init__.py index e69de29..f59ce78 100644 --- a/resources/simplex/__init__.py +++ b/resources/simplex/__init__.py @@ -0,0 +1,12 @@ +""" +"Simplex" folder importing definitions. +""" + +# Import files/values we want to be available to other folders. +from .base import SimplexBase as Simplex + + +# Define imports when using the * flag on this folder. +__all__ = [ + 'Simplex', +] -- GitLab