Skip to content

Commit

Permalink
Move help into the package tree
Browse files Browse the repository at this point in the history
  • Loading branch information
mgedmin committed Dec 16, 2017
1 parent 03484e3 commit c604b3d
Show file tree
Hide file tree
Showing 6 changed files with 3 additions and 5 deletions.
2 changes: 1 addition & 1 deletion MANIFEST.in
Original file line number Diff line number Diff line change
Expand Up @@ -16,5 +16,5 @@ include benchmark.py
recursive-include src *.png *.ui *.xml *.css *.rst gschemas.compiled
recursive-include docs *.png *.rst
recursive-include scripts *.py *.rst
recursive-include help *.page *.xml *.png
recursive-include src/gtimelog/help *.page *.xml *.png
recursive-include src/gtimelog/po *.po *.pot *.in
File renamed without changes
File renamed without changes.
File renamed without changes.
File renamed without changes.
6 changes: 2 additions & 4 deletions src/gtimelog/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ def mark_time(what=None, _prev=[0, 0]):

HERE = os.path.dirname(__file__)

SCHEMA_DIR = os.path.join(os.path.dirname(__file__), 'data')
SCHEMA_DIR = os.path.join(HERE, 'data')
if SCHEMA_DIR and not os.environ.get('GSETTINGS_SCHEMA_DIR'):
# Have to do this before importing 'gi'.
os.environ['GSETTINGS_SCHEMA_DIR'] = SCHEMA_DIR
Expand Down Expand Up @@ -93,11 +93,9 @@ def to_bytes(s):

mark_time("gtimelog imports done")

ROOT = os.path.dirname(os.path.dirname(os.path.dirname(os.path.abspath(__file__))))

# When the app is properly installed, use HELP_URI = 'help:gtimelog'
HELP_URI = ''
HELP_DIR = os.path.abspath(os.path.join(ROOT, 'help'))
HELP_DIR = os.path.abspath(os.path.join(HERE, 'help'))

UI_DIR = HERE

Expand Down

0 comments on commit c604b3d

Please sign in to comment.