New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
load_path #8146
Comments
Comment author: administrator En fait, je me demande si j'ai bien localisé l'origine du problème, parce Or contrib est ajouté par -I, et se trouve donc avant "" dans le load_path. Bruno. |
Comment author: administrator From: Bruno.Verlyck@inria.fr
Non, c'est bien le comportement normal d'ocaml: "." est toujours mis Ce probleme me semble specifique aux scripts. Peut-etre faut-il un
le "-I +" etant pour la librairie standard... Jacques |
Comment author: administrator From: Pierre Weis pierre.weis@inria.fr
L'option -I- me semble respecter toutes les contraintes et devrait donc Je ne vois pas dans quelle circonstance on voudrait supprimer la librairie Pourquoi laisser le directory courant ? Je pensais que c'était pour le bus Tout ceci concernait les scripts, mais dans un toplevel interactif, on ne Bruno. |
Comment author: administrator Bruno's problem was solved in another way. What to do with -I- remains unclear. |
Comment author: @damiendoligez We are not working on this feature, but if someone comes up with a patch to implement -I-, we will consider applying it. |
Original bug ID: 1687
Reporter: administrator
Status: closed (set by @xavierleroy on 2013-08-31T10:46:12Z)
Resolution: suspended
Priority: normal
Severity: feature
Category: ~DO NOT USE (was: OCaml general)
Bug description
Est-il bien nécessaire de mettre implicitement le directory courant dans
load_path ? Dans toploop.ml, il y a
let set_paths () =
(* Add whatever -I options have been specified on the command line,
but keep the directories that user code linked in with ocamlmktop
may have added to load_path. *)
load_path := !load_path @ [Filename.concat Config.standard_library "camlp4"];
load_path := "" :: (List.rev !Clflags.include_dirs @ !load_path);
Voici ce qui m'arrive: j'ai un script, exécuté par un top-level a été fait
avec une 3.06. qui commence par:
#load "cstr.cma";
Et ce script ne fonctionne pas dans un directory qui contient un cstr.cma
dont je ne veux pas (compilé avec une version CVS de Caml...).
S'il y a un contre-exemple qui justifie . dans load_path, je suppose que je
n'ai plus qu'à l'enlever à la main en m'initialisant ? Ou alors le top-level
n'ajoute . que s'il est interactif ?
Bruno.
The text was updated successfully, but these errors were encountered: