Changeset 3064


Ignore:
Timestamp:
Oct 1, 2010 1:30:38 AM (11 years ago)
Author:
wehart
Message:

Adding logic to disable PICO when found in /usr/bin or /bin.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • coopr.opt/trunk/coopr/opt/base/opt_config.py

    r1768 r3064  
    1515# namespace.
    1616#
    17 pyutilib.services.register_executable(name="PICO")
     17def validate_pico(filename):
     18    if filename.startswith('/usr/bin') or filename.startswith('/bin'):
     19        return False
     20    return True
     21pyutilib.services.register_executable(name="PICO", validate=validate_pico)
    1822pyutilib.services.register_executable(name="pico_convert")
    1923pyutilib.services.register_executable(name="glpsol")
Note: See TracChangeset for help on using the changeset viewer.