Skip to content

Commit

Permalink
Refs #4472 fix wiki_maker
Browse files Browse the repository at this point in the history
  • Loading branch information
Janik Zikovsky committed Apr 19, 2012
1 parent f0877ae commit 3bd507a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Code/Mantid/Build/wiki_maker.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ def get_wiki_description(algo, version):
@param algo :: name of the algorithm
@param version :: version, -1 for latest
"""
global mtd
source = find_algo_file(algo, version)
if source == '':
alg = mtd.createAlgorithm(algo, version)
Expand Down Expand Up @@ -269,6 +270,7 @@ def make_redirect(from_page, to_page):
def do_algorithm(args, algo):
""" Do the wiki page
@param algo :: the name of the algorithm, possibly with suffix #"""
global mtd

is_latest_version = True
version = -1;
Expand Down Expand Up @@ -375,6 +377,8 @@ def do_algorithm(args, algo):
os.environ['MANTIDPATH'] = args.mantidpath

initialize_Mantid(args.mantidpath)
global mtd
mtd = wiki_tools.mtd
intialize_files()
initialize_wiki(args)

Expand Down

0 comments on commit 3bd507a

Please sign in to comment.