Skip to content

Commit

Permalink
updating __init__ pathing for easier importing
Browse files Browse the repository at this point in the history
  • Loading branch information
lockefox committed Sep 12, 2017
1 parent 81b1556 commit 3a8dd69
Show file tree
Hide file tree
Showing 7 changed files with 20 additions and 10 deletions.
5 changes: 5 additions & 0 deletions prosper/datareader/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
import prosper.datareader.exceptions
import prosper.datareader._version
import prosper.datareader.config
from . import coins
from . import stocks
2 changes: 2 additions & 0 deletions prosper/datareader/coins/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
from . import info
from . import prices
8 changes: 5 additions & 3 deletions prosper/datareader/coins/info.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,12 @@
import requests
import pandas as pd

from prosper.datareader.config import LOGGER as G_LOGGER
import prosper.datareader.exceptions as exceptions
from .. import config
from .. import exceptions
#from prosper.datareader.config import LOGGER as G_LOGGER
#import prosper.datareader.exceptions as exceptions

LOGGER = G_LOGGER
LOGGER = config.LOGGER
HERE = path.abspath(path.dirname(__file__))

__all__ = (
Expand Down
5 changes: 2 additions & 3 deletions prosper/datareader/coins/prices.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,8 @@
import requests
import pandas as pd

import prosper.datareader.config as config
import prosper.datareader.exceptions as exceptions
import prosper.datareader.coins.info as info
from .. import config
from . import info

LOGGER = config.LOGGER
HERE = path.abspath(path.dirname(__file__))
Expand Down
2 changes: 2 additions & 0 deletions prosper/datareader/stocks/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
from . import news
from . import prices
6 changes: 3 additions & 3 deletions prosper/datareader/stocks/news.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@
from six.moves.html_parser import HTMLParser
import pandas as pd

from prosper.datareader.config import LOGGER as G_LOGGER
import prosper.datareader.exceptions as exceptions
from .. import config
from .. import exceptions

LOGGER = G_LOGGER
LOGGER = config.LOGGER
HERE = path.abspath(path.dirname(__file__))
#PARSER = HTMLParser()

Expand Down
2 changes: 1 addition & 1 deletion prosper/datareader/stocks/prices.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
import requests
import pandas as pd

import prosper.datareader.config as config
from .. import config

LOGGER = config.LOGGER
HERE = path.abspath(path.dirname(__file__))
Expand Down

0 comments on commit 3a8dd69

Please sign in to comment.