summaryrefslogtreecommitdiff
path: root/lib/envars.ml
diff options
context:
space:
mode:
authorGravatar Stephane Glondu <steph@glondu.net>2012-06-04 12:23:14 +0200
committerGravatar Stephane Glondu <steph@glondu.net>2012-06-04 12:23:14 +0200
commit86535d84cc3cffeee1dcd8545343f234e7285530 (patch)
tree9b221c283c2971f7ac151397231059e1d239e723 /lib/envars.ml
parent39efc41237ec906226a3a53d7396d51173495204 (diff)
parent61dc740ed1c3780cccaec00d059a28f0d31d0052 (diff)
Diffstat (limited to 'lib/envars.ml')
-rw-r--r--lib/envars.ml6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/envars.ml b/lib/envars.ml
index e5c93803..17cfa122 100644
--- a/lib/envars.ml
+++ b/lib/envars.ml
@@ -62,10 +62,10 @@ let xdg_config_home =
"coq"
let xdg_data_dirs =
- try
+ (try
List.map (fun dir -> Filename.concat dir "coq") (path_to_list (Sys.getenv "XDG_DATA_DIRS"))
- with Not_found -> "/usr/local/share/coq" :: "/usr/share/coq"
- :: (match Coq_config.datadir with |None -> [] |Some datadir -> [datadir])
+ with Not_found -> ["/usr/local/share/coq";"/usr/share/coq"])
+ @ (match Coq_config.datadir with |None -> [] |Some datadir -> [datadir])
let xdg_dirs =
let dirs = xdg_data_home :: xdg_data_dirs