********> bugfix 3.
Author: Wei Zhang
Date: 8 April 2008
Programs: sleap
Severity: minor
Description: The program won't read a user leaprc file from an arbitray path
Fix: Apply the following fix to amber10/src/gleap/mortsrc/guilib/mainwin.cpp
*** mainwin.cpp 30 Aug 2007 18:12:12 -0000 1.10
--- mainwin.cpp 2 Apr 2008 18:25:11 -0000 1.11
***************
*** 20,25 ****
--- 20,33 ----
string find_file( const string& name )
{
+ std::ifstream is( name.c_str() );
+ if( is )
+ {
+ leaplog_t::putline( "using file " + name );
+ return name;
+ }
+
+
string path;
assert( mortenv().get_s( "path", path ) );
---------------------------------------------------------------------------
Workarounds: put your leaprc file into one of the standard locations.