summaryrefslogtreecommitdiff
path: root/src/couchdb
diff options
context:
space:
mode:
Diffstat (limited to 'src/couchdb')
-rw-r--r--src/couchdb/couch_os_process.erl8
-rw-r--r--src/couchdb/couch_server_sup.erl2
2 files changed, 2 insertions, 8 deletions
diff --git a/src/couchdb/couch_os_process.erl b/src/couchdb/couch_os_process.erl
index 957e1a95..f42e99a8 100644
--- a/src/couchdb/couch_os_process.erl
+++ b/src/couchdb/couch_os_process.erl
@@ -103,13 +103,7 @@ readjson(OsProc) when is_record(OsProc, os_proc) ->
% gen_server API
init([Command, Options, PortOptions]) ->
- case code:priv_dir(couch) of
- {error, bad_name} ->
- % small hack, in dev mode "app" is couchdb. Fixing requires renaming
- % src/couch to src/couch. Not really worth the hassle.-Damien
- PrivDir = code:priv_dir(couchdb);
- PrivDir -> ok
- end,
+ PrivDir = couch_util:priv_dir(),
Spawnkiller = filename:join(PrivDir, "couchspawnkillable"),
BaseProc = #os_proc{
command=Command,
diff --git a/src/couchdb/couch_server_sup.erl b/src/couchdb/couch_server_sup.erl
index 989b0007..d89e987d 100644
--- a/src/couchdb/couch_server_sup.erl
+++ b/src/couchdb/couch_server_sup.erl
@@ -76,7 +76,7 @@ start_server(IniFiles) ->
LibDir =
case couch_config:get("couchdb", "util_driver_dir", null) of
null ->
- filename:join(code:priv_dir(couch), "lib");
+ filename:join(couch_util:priv_dir(), "lib");
LibDir0 -> LibDir0
end,