Skip to content

Commit

Permalink
We already take care of setting the path in setup.py for a system ins…
Browse files Browse the repository at this point in the history
…tall.
  • Loading branch information
ShadowKyogre committed Jan 8, 2013
1 parent adb1674 commit 992c332
Showing 1 changed file with 5 additions and 12 deletions.
17 changes: 5 additions & 12 deletions qtarot/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,15 +13,8 @@
DATA_DIR = path.dirname(path.dirname(__file__))
### CONSTANTS END ###

# implies we're not running this in download and run context
# if this fails
if DATA_DIR == path.dirname(path.dirname(__file__)):
DATA_DIR_QTAROT = DATA_DIR
else:
DATA_DIR_QTAROT = path.join(DATA_DIR,'qtarot')

VALIDATORS = path.join(DATA_DIR_QTAROT,'validators')
DECKS = path.join(DATA_DIR_QTAROT,'decks')
LAYOUTS = path.join(DATA_DIR_QTAROT,'layouts')
DECK_DEFS = path.join(DATA_DIR_QTAROT,'deck_defs')
HTMLTPL = path.join(DATA_DIR_QTAROT,'htmltpl')
VALIDATORS = path.join(DATA_DIR,'validators')
DECKS = path.join(DATA_DIR,'decks')
LAYOUTS = path.join(DATA_DIR,'layouts')
DECK_DEFS = path.join(DATA_DIR,'deck_defs')
HTMLTPL = path.join(DATA_DIR,'htmltpl')

0 comments on commit 992c332

Please sign in to comment.