-
Notifications
You must be signed in to change notification settings - Fork 0
/
KROME.jl
32 lines (22 loc) · 894 Bytes
/
KROME.jl
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
module KROME
using Reexport: @reexport
using CBinding: 𝐣𝐥
include("libkrome.jl")
export install_reactions_verbatim
"""
install_reactions_verbatim(dir="."; force=true)
Copy the file `reactions_verbatim.dat` from the package-internal KROME build directory to the
directory specified in `dir` and return the filename of the newly created file. If the target file
already exists, it will be overwritten, unless `force` is set to `false`.
"""
function install_reactions_verbatim(dir="."; force=true)
filename = "reactions_verbatim.dat"
source_path = joinpath(pathof(@__MODULE__) |> dirname |> dirname, "deps", filename)
target_path = joinpath(dir, filename)
if !isfile(source_path)
error("File '$source_path' does not exist. Have you successfully built KROME yet?")
end
cp(source_path, target_path, force=force, follow_symlinks=true)
return target_path
end
end