Skip to content

Commit

Permalink
Merge pull request idaholab#301 from aeslaughter/moosedocs
Browse files Browse the repository at this point in the history
Clean up moosedocs.py
  • Loading branch information
dschwen authored Apr 26, 2018
2 parents 331d3f7 + 18976dd commit 6da5ec7
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions doc/moosedocs.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,13 @@
MOOSE_DIR = os.path.join(os.getenv('HOME'), 'projects', 'moose')
if not os.path.exists(MOOSE_DIR):
raise Exception('Failed to locate MOOSE, specify the MOOSE_DIR environment variable.')
os.environ['MOOSE_DIR'] = MOOSE_DIR

# Append MOOSE python directory
MOOSE_PYTHON_DIR = os.path.join(MOOSE_DIR, 'python')
if MOOSE_PYTHON_DIR not in sys.path:
sys.path.append(MOOSE_PYTHON_DIR)
import MooseDocs
MooseDocs.MOOSE_DIR = MOOSE_DIR
from MooseDocs import main

from MooseDocs import main
if __name__ == '__main__':
sys.exit(main.run())

0 comments on commit 6da5ec7

Please sign in to comment.