Changeset 3062


Ignore:
Timestamp:
Sep 30, 2010 11:33:32 PM (11 years ago)
Author:
wehart
Message:

Using validation for PICO that will ignore executables in the /bin or /usr/bin directories.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • coopr.plugins/trunk/coopr/plugins/mip/PICO.py

    r2716 r3062  
    281281
    282282
    283 pyutilib.services.register_executable(name="pico")
    284 
     283def validate_pico(filename):
     284    if filename.startswith('/usr/bin') or filename.startswith('/bin'):
     285        return False
     286    return True
     287
     288pyutilib.services.register_executable(name="pico", validate=validate_pico)
     289
Note: See TracChangeset for help on using the changeset viewer.