Changeset 7571


Ignore:
Timestamp:
Nov 26, 2009, 9:27:31 AM (9 years ago)
Author:
ole
Message:

Got rid of environment variables in both project and project_template

Location:
anuga_validation/automated_validation_tests/patong_beach_validation
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • anuga_validation/automated_validation_tests/patong_beach_validation/project.py

    r7567 r7571  
    166166host = get_host_name()
    167167
    168 # Environment variable names.
    169 # The inundation directory, not the data directory.
    170 ENV_INUNDATIONHOME = 'INUNDATIONHOME'
    171 
    172 # Path to MUX data
    173 ENV_MUXHOME = 'MUXHOME'
    174 
    175168#-------------------------------------------------------------------------------
    176169# Output Elevation Data
     
    191184run_time = time + '_run_'
    192185
    193 # create paths generated from environment variables.
    194 #home = join(os.getenv(ENV_INUNDATIONHOME), 'data') # Absolute path for data folder
    195 #muxhome = os.getenv(ENV_MUXHOME)
    196 
     186# create paths for data files.
    197187output_dirname = os.path.dirname(__file__)
    198188home = os.path.join(output_dirname, 'local_data', 'data')
  • anuga_validation/automated_validation_tests/patong_beach_validation/project_template.py

    r7276 r7571  
    166166host = get_host_name()
    167167
    168 # Environment variable names.
    169 # The inundation directory, not the data directory.
    170 ENV_INUNDATIONHOME = 'INUNDATIONHOME'
    171 
    172 # Path to MUX data
    173 ENV_MUXHOME = 'MUXHOME'
    174 
    175168#-------------------------------------------------------------------------------
    176169# Output Elevation Data
     
    191184run_time = time + '_run_'
    192185
    193 # create paths generated from environment variables.
    194 home = join(os.getenv(ENV_INUNDATIONHOME), 'data') # Absolute path for data folder
    195 muxhome = os.getenv(ENV_MUXHOME)
     186# create paths for data files.
     187output_dirname = os.path.dirname(__file__)
     188home = os.path.join(output_dirname, 'local_data', 'data')
     189muxhome = home # FIXME (Ole): Get rid off
     190
    196191   
    197192# check various directories/files that must exist
Note: See TracChangeset for help on using the changeset viewer.