Default module library directory to the directory that hercules started from if it can be determined. This benefits windows since both dll and exe are in the same directory.

git-svn-id: file:///home/jj/hercules.svn/trunk@5937 956126f8-22a0-4046-8f4a-272fa8102e63
This commit is contained in:
Paul Gorlinsky
2010-05-05 21:36:06 +00:00
parent 36a933d669
commit 2780fc2058
3 changed files with 43 additions and 3 deletions

7
hdl.c
View File

@@ -785,7 +785,12 @@ HDLPRE *preload;
initialize_lock(&hdl_sdlock);
if ( hdl_modpath == NULL )
hdl_setpath(HDL_DEFAULT_PATH, TRUE);
{
if ( strlen( sysblk.hercules_pgmpath ) == 0 )
hdl_setpath(HDL_DEFAULT_PATH, TRUE);
else
hdl_setpath(sysblk.hercules_pgmpath, TRUE);
}
dlinit();