From 3c5071d813ef383e390a0b6291c878f54c6b366b Mon Sep 17 00:00:00 2001 From: Nanda Scott Date: Tue, 30 Jan 2018 20:47:31 -0500 Subject: [PATCH] Rulings are now able to import as designed. --- __init__.py | 9 ++++++++- rulings/__init__.py | 5 +++++ rulings/mtgo.py | 2 +- rulings/multiverse_id.py | 2 +- rulings/scryfall_id.py | 2 +- rulings/set_code.py | 2 +- 6 files changed, 17 insertions(+), 5 deletions(-) create mode 100644 rulings/__init__.py diff --git a/__init__.py b/__init__.py index 2855c22..2b79c3d 100644 --- a/__init__.py +++ b/__init__.py @@ -1,7 +1,14 @@ +#Import classes from cards from scrython.cards import Autocomplete from scrython.cards import Collector from scrython.cards import Id from scrython.cards import Mtgo from scrython.cards import Multiverse from scrython.cards import Named -from scrython.cards import RandomCard +from scrython.cards import Random + +#Import classes from rulings +from scrython.rulings import Mtgo +from scrython.rulings import Multiverse +from scrython.rulings import Id +from scrython.rulings import Code diff --git a/rulings/__init__.py b/rulings/__init__.py new file mode 100644 index 0000000..a08cf90 --- /dev/null +++ b/rulings/__init__.py @@ -0,0 +1,5 @@ +from .mtgo import Mtgo +from .multiverse_id import Multiverse +from .rulings_object import RulingsObject +from .scryfall_id import Id +from .set_code import Code diff --git a/rulings/mtgo.py b/rulings/mtgo.py index 183e1e4..5ba1329 100644 --- a/rulings/mtgo.py +++ b/rulings/mtgo.py @@ -1,4 +1,4 @@ -from rulings_object import RulingsObject +from .rulings_object import RulingsObject class Mtgo(RulingsObject): """docstring for Mtgo.""" diff --git a/rulings/multiverse_id.py b/rulings/multiverse_id.py index 8a43ebc..4ba0deb 100644 --- a/rulings/multiverse_id.py +++ b/rulings/multiverse_id.py @@ -1,4 +1,4 @@ -from rulings_object import RulingsObject +from .rulings_object import RulingsObject class Multiverse(RulingsObject): """docstring for Multiverse.""" diff --git a/rulings/scryfall_id.py b/rulings/scryfall_id.py index 17ec4f2..b1c1415 100644 --- a/rulings/scryfall_id.py +++ b/rulings/scryfall_id.py @@ -1,4 +1,4 @@ -from rulings_object import RulingsObject +from .rulings_object import RulingsObject class Id(RulingsObject): """docstring for Id.""" diff --git a/rulings/set_code.py b/rulings/set_code.py index e8d368b..ea8fd8e 100644 --- a/rulings/set_code.py +++ b/rulings/set_code.py @@ -1,4 +1,4 @@ -from rulings_object import RulingsObject +from .rulings_object import RulingsObject class Code(RulingsObject): """docstring for Code."""