[GRASS-dev] python question - how to test if file is executable in path?

Michael Barton michael.barton at asu.edu
Sat Jul 19 15:20:44 EDT 2008


I'd like to test if a program is executable or not (i.e., in this  
case, whether it is in the PATH) in a python script.

Any suggestions as to how to do this in a way that does not raise a  
Python error?

Michael
____________________
C. Michael Barton, Professor of Anthropology
Director of Graduate Studies
School of Human Evolution & Social Change
Center for Social Dynamics & Complexity
Arizona State University

Phone: 480-965-6262
Fax: 480-965-7671
www: <www.public.asu.edu/~cmbarton>



-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/grass-dev/attachments/20080719/23719361/attachment.html


More information about the grass-dev mailing list