<!-- clanlib header begin --> <HTML> <HEAD> <TITLE>CL_System::get_exe_path - ClanLib Game SDK</TITLE> <STYLE TYPE="text/css"><!-- HTML BODY { font-family: verdana, helvetica, sans-serif; font-size: 12px; } H1 { font-size: 22px; } H2 { font-size: 18px; } H3 { font-size: 16px; } H4 { font-size: 14px; } P { font-size: 12px; } LI { font-size: 12px; } --></STYLE> </HEAD> <body bgcolor=white text=black link=blue vlink=#800080> <center> <img src="http://clanlib.org/gfx/clanlib.png"> </center> <!-- clanlib header end --> <center> <p> <a href="http://clanlib.org/docs.html">Home</a> | <a href="classes.html">All Classes</a> | <a href="modules.html">Grouped Classes</a> | <a href="index.html">Index</a> | <a href="search.html">Search</a> </p> </center> <h1>CL_System::get_exe_path</h1> <p> Returns the full dirname of the executable that started this process (aka argv[0])</p> <pre> std::string get_exe_path(); </pre> <p><b>Return value:</b></p> <p>full dirname of the executable, trailing slash is included<br></p> <p><b>Detailed description:</b></p> <p>This is necessary since when programms are started from the PATH there is no clean and simple way to figure out the location of the data files, thus information is read from <tt>/proc/self/exe</tt> under GNU/Linux and from GetModuleFileName() on Win32.</p> <p><b>See also:</b></p> <p><a href="CL_System.html">CL_System</a></p> <!-- clanlib footer begin --> <center><br><br><font color="#a0a0a0"> Questions or comments, write to the <a href="http://clanlib.org/contact.html">ClanLib mailing list</a>. </font></center> </body> </html> <!-- clanlib footer end -->