metaSMT 2
metaSMT/support/find_executable.hpp
Go to the documentation of this file.
00001 #pragma once
00002 #include <string>
00003 
00004 namespace metaSMT {
00005   namespace support {
00006     std::string find_executable( std::string const & progname
00007                                , std::string const & envname) 
00008     {
00009       char* env = getenv(envname.c_str());
00010       if(env) return env;
00011       return progname;
00012     }
00013   } /* support */
00014 } /* metaSMT */
00015 
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines