Merge pull request #338 from hyphenrf/patch-1

This commit is contained in:
Rudi Grinberg 2021-04-08 08:00:44 -07:00 committed by GitHub
commit 711c24661c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -1519,7 +1519,7 @@ let common_init ~initial_env =
None
)
| None ->
if Sys.file_exists ".ocamlinit" then
if Sys.file_exists ".ocamlinit" && Sys.getcwd () <> LTerm_resources.home then
Some ".ocamlinit"
else
let xdg_fn = LTerm_resources.xdgbd_file ~loc:LTerm_resources.Config "utop/init.ml" in