Changeset 3098


Ignore:
Timestamp:
Oct 13, 2010 10:44:34 PM (10 years ago)
Author:
wehart
Message:

Allow the output directory for the parse script to be specified.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • coopr.pyomo/trunk/coopr/pyomo/data/parse_datacmds.py

    r3019 r3098  
    381381
    382382tabmodule = 'parse_table_datacmds'
    383 outputdir = os.path.dirname(os.path.abspath(__file__))+os.sep
    384383
    385384ampl_dat_lexer = None
     
    389388# The function that performs the parsing
    390389#
    391 def parse_data_commands(data=None, filename=None, debug=0):
     390def parse_data_commands(data=None, filename=None, debug=0, outputdir=None):
    392391
    393392    global debugging
    394393    global ampl_dat_lexer
    395394    global ampl_dat_yaccer
     395
     396    if outputdir is None:
     397        outputdir = os.path.dirname(os.path.abspath(__file__))+os.sep
    396398
    397399    # if the lexer/yaccer haven't been initialized, do so.
Note: See TracChangeset for help on using the changeset viewer.