Skip to content

🐛 make html.dat path relocatable #16

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 7 additions & 8 deletions Project.toml
Original file line number Diff line number Diff line change
@@ -1,20 +1,19 @@
name = "HTML_Entities"
desc = "Entities from HTML data tables"
authors = ["ScottPJones <[email protected]>"]
keywords = ["Entities", "HTML"]
license = "MIT"
uuid = "7693890a-d069-55fe-a829-b4a6d304f0ee"
version = "1.0.1"
version = "1.0.2"

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

[compat]
RelocatableFolders = "1"
StrTables = "1"
julia = "1"

[extras]
Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40"

[targets]
test = ["Test"]

[compat]
julia = "1"
StrTables = "1"
5 changes: 3 additions & 2 deletions src/HTML_Entities.jl
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ __precompile__()
"""
module HTML_Entities
using StrTables
using RelocatableFolders

VER = UInt32(1)

Expand All @@ -29,8 +30,8 @@ struct HTML_Table{T} <: AbstractEntityTable
end

function __init__()
global default =
HTML_Table(StrTables.load(joinpath(@__DIR__, "../data", "html.dat"))...)
html_data_path = @path joinpath(@__DIR__, "../data", "html.dat")
global default = HTML_Table(StrTables.load(html_data_path)...)
nothing
end
end # module HTML_Entities