Skip to content

Commit 0aa770e

Browse files
authored
Merge pull request #15 from jbrea/master
make relocatable
2 parents c92ff86 + 00a1ef5 commit 0aa770e

File tree

2 files changed

+13
-10
lines changed

2 files changed

+13
-10
lines changed

Project.toml

+9-7
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,22 @@
11
name = "HTML_Entities"
2-
desc = "Entities from HTML data tables"
3-
authors = ["ScottPJones <[email protected]>"]
2+
uuid = "7693890a-d069-55fe-a829-b4a6d304f0ee"
43
keywords = ["Entities", "HTML"]
54
license = "MIT"
6-
uuid = "7693890a-d069-55fe-a829-b4a6d304f0ee"
5+
desc = "Entities from HTML data tables"
6+
authors = ["ScottPJones <[email protected]>"]
77
version = "1.0.1"
88

99
[deps]
10+
RelocatableFolders = "05181044-ff0b-4ac5-8273-598c1e38db00"
1011
StrTables = "9700d1a9-a7c8-5760-9816-a99fda30bb8f"
1112

13+
[compat]
14+
RelocatableFolders = "1"
15+
StrTables = "1"
16+
julia = "1"
17+
1218
[extras]
1319
Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40"
1420

1521
[targets]
1622
test = ["Test"]
17-
18-
[compat]
19-
julia = "1"
20-
StrTables = "1"

src/HTML_Entities.jl

+4-3
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ __precompile__()
88
* completions(str)
99
"""
1010
module HTML_Entities
11-
using StrTables
11+
using StrTables, RelocatableFolders
1212

1313
VER = UInt32(1)
1414

@@ -28,9 +28,10 @@ struct HTML_Table{T} <: AbstractEntityTable
2828
ind2c::Vector{UInt16}
2929
end
3030

31+
const DATA_PATH = @path joinpath(@__DIR__, "../data", "html.dat")
32+
3133
function __init__()
32-
global default =
33-
HTML_Table(StrTables.load(joinpath(@__DIR__, "../data", "html.dat"))...)
34+
global default = HTML_Table(StrTables.load(DATA_PATH)...)
3435
nothing
3536
end
3637
end # module HTML_Entities

0 commit comments

Comments
 (0)