import sys, os

# get the location of this script
app_path = os.path.abspath(os.path.dirname(sys.argv[0]))
# this script is actually in the scripts subdirectory, so go up a level
app_path += '/..'

# Set the name of the application here and moose directory relative to the application
app_name = 'RAVEN'
MOOSE_DIR = app_path + '/../moose'
# See if MOOSE_DIR is already in the environment instead
if os.environ.has_key("MOOSE_DIR"):
  MOOSE_DIR = os.environ['MOOSE_DIR']

sys.path.append(MOOSE_DIR + '/scripts/syntaxHTML')
import genInputFileSyntaxHTML

# this will automatically copy the documentation to the base directory
# in a folder named syntax
genInputFileSyntaxHTML.generateHTML(app_name, app_path, sys.argv, MOOSE_DIR)

import sys, os

# get the location of this script
app_path = os.path.abspath(os.path.dirname(sys.argv[0]))

# Set the name of the application here and moose directory relative to the application
app_name = 'raven'

MOOSE_DIR = os.path.abspath(os.path.join(app_path, '..', '..' 'moose'))
FRAMEWORK_DIR = os.path.abspath(os.path.join(app_path, '..', '..', 'moose', 'framework'))
#### See if MOOSE_DIR is already in the environment instead
if os.environ.has_key("MOOSE_DIR"):
  MOOSE_DIR = os.environ['MOOSE_DIR']
  FRAMEWORK_DIR = os.path.join(MOOSE_DIR, 'framework')
if os.environ.has_key("FRAMEWORK_DIR"):
  FRAMEWORK_DIR = os.environ['FRAMEWORK_DIR']

sys.path.append(FRAMEWORK_DIR + '/scripts/syntaxHTML')
import genInputFileSyntaxHTML

# this will automatically copy the documentation to the base directory
# in a folder named syntax
genInputFileSyntaxHTML.generateHTML(app_name, app_path, sys.argv, FRAMEWORK_DIR)

Update scripts to reflect new MOOSE_DIR definition
Update scripts to reflect new MOOSE_DIR definition

r25009

  import sys, os
  
  # get the location of this script
  app_path = os.path.abspath(os.path.dirname(sys.argv[0]))
- # this script is actually in the scripts subdirectory, so go up a level
- app_path += '/..'
  
  # Set the name of the application here and moose directory relative to the application
- app_name = 'RAVEN'
- MOOSE_DIR = app_path + '/../moose'
+ app_name = 'raven'
+ 
+ MOOSE_DIR = os.path.abspath(os.path.join(app_path, '..', '..' 'moose'))
+ FRAMEWORK_DIR = os.path.abspath(os.path.join(app_path, '..', '..', 'moose', 'framework'))
- # See if MOOSE_DIR is already in the environment instead
+ #### See if MOOSE_DIR is already in the environment instead
  if os.environ.has_key("MOOSE_DIR"):
    MOOSE_DIR = os.environ['MOOSE_DIR']
+   FRAMEWORK_DIR = os.path.join(MOOSE_DIR, 'framework')
+ if os.environ.has_key("FRAMEWORK_DIR"):
+   FRAMEWORK_DIR = os.environ['FRAMEWORK_DIR']
  
- sys.path.append(MOOSE_DIR + '/scripts/syntaxHTML')
+ sys.path.append(FRAMEWORK_DIR + '/scripts/syntaxHTML')
  import genInputFileSyntaxHTML
  
  # this will automatically copy the documentation to the base directory
  # in a folder named syntax
- genInputFileSyntaxHTML.generateHTML(app_name, app_path, sys.argv, MOOSE_DIR)
+ genInputFileSyntaxHTML.generateHTML(app_name, app_path, sys.argv, FRAMEWORK_DIR)
  
Update scripts to reflect new MOOSE_DIR definition
## Code Before:
import sys, os

# get the location of this script
app_path = os.path.abspath(os.path.dirname(sys.argv[0]))
# this script is actually in the scripts subdirectory, so go up a level
app_path += '/..'

# Set the name of the application here and moose directory relative to the application
app_name = 'RAVEN'
MOOSE_DIR = app_path + '/../moose'
# See if MOOSE_DIR is already in the environment instead
if os.environ.has_key("MOOSE_DIR"):
  MOOSE_DIR = os.environ['MOOSE_DIR']

sys.path.append(MOOSE_DIR + '/scripts/syntaxHTML')
import genInputFileSyntaxHTML

# this will automatically copy the documentation to the base directory
# in a folder named syntax
genInputFileSyntaxHTML.generateHTML(app_name, app_path, sys.argv, MOOSE_DIR)

## Instruction:
Update scripts to reflect new MOOSE_DIR definition
## Code After:
import sys, os

# get the location of this script
app_path = os.path.abspath(os.path.dirname(sys.argv[0]))

# Set the name of the application here and moose directory relative to the application
app_name = 'raven'

MOOSE_DIR = os.path.abspath(os.path.join(app_path, '..', '..' 'moose'))
FRAMEWORK_DIR = os.path.abspath(os.path.join(app_path, '..', '..', 'moose', 'framework'))
#### See if MOOSE_DIR is already in the environment instead
if os.environ.has_key("MOOSE_DIR"):
  MOOSE_DIR = os.environ['MOOSE_DIR']
  FRAMEWORK_DIR = os.path.join(MOOSE_DIR, 'framework')
if os.environ.has_key("FRAMEWORK_DIR"):
  FRAMEWORK_DIR = os.environ['FRAMEWORK_DIR']

sys.path.append(FRAMEWORK_DIR + '/scripts/syntaxHTML')
import genInputFileSyntaxHTML

# this will automatically copy the documentation to the base directory
# in a folder named syntax
genInputFileSyntaxHTML.generateHTML(app_name, app_path, sys.argv, FRAMEWORK_DIR)
