diff options
author | Damien Doligez <damien.doligez-inria.fr> | 2003-07-17 13:55:37 +0000 |
---|---|---|
committer | Damien Doligez <damien.doligez-inria.fr> | 2003-07-17 13:55:37 +0000 |
commit | 2b1476fde764b1bba8d3063c8d9dad92d769d6b9 (patch) | |
tree | d57504e2a00f0d900400f00306304951691a20e9 /debugger/loadprinter.ml | |
parent | 840b2bf9f158b474f8ad10f0177fb0adceb39e95 (diff) | |
download | ocaml-2b1476fde764b1bba8d3063c8d9dad92d769d6b9.tar.gz |
PR#1479
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@5707 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
Diffstat (limited to 'debugger/loadprinter.ml')
-rw-r--r-- | debugger/loadprinter.ml | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/debugger/loadprinter.ml b/debugger/loadprinter.ml index 5bc748d3c3..ef86b7146e 100644 --- a/debugger/loadprinter.ml +++ b/debugger/loadprinter.ml @@ -64,6 +64,11 @@ let rec loadfiles ppf name = try let filename = find_in_path !Config.load_path name in use_debugger_symtable Dynlink.loadfile filename; + let d = Filename.dirname name in + if d <> Filename.current_dir_name then begin + if not (List.mem d !Config.load_path) then + Config.load_path := d :: !Config.load_path; + end; fprintf ppf "File %s loaded@." filename; true with |