aboutsummaryrefslogtreecommitdiffstats
path: root/examples/markdown_middleware/src/markdown_converter.erl
diff options
context:
space:
mode:
Diffstat (limited to 'examples/markdown_middleware/src/markdown_converter.erl')
-rw-r--r--examples/markdown_middleware/src/markdown_converter.erl4
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/markdown_middleware/src/markdown_converter.erl b/examples/markdown_middleware/src/markdown_converter.erl
index 24bb132..f380332 100644
--- a/examples/markdown_middleware/src/markdown_converter.erl
+++ b/examples/markdown_middleware/src/markdown_converter.erl
@@ -22,8 +22,8 @@ maybe_generate_markdown(Path) ->
end.
resource_path(Path) ->
- {ok, Cwd} = file:get_cwd(),
- filename:join([Cwd, "priv", Path]).
+ PrivDir = code:priv_dir(markdown_middleware),
+ filename:join([PrivDir, Path]).
source_path(Path) ->
<< (filename:rootname(Path))/binary, ".md" >>.