Skip to content

Commit b5e2d5b

Browse files
author
srghma
committed
fix(#12): no such file or directory @ rb_sysopen - country_lookup_table.yml
1 parent 1a18feb commit b5e2d5b

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

lib/free_zipcode_data/db_table.rb

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,11 @@ def update_progress
2424
private
2525

2626
def country_lookup_table
27-
@country_lookup_table ||= YAML.load_file('country_lookup_table.yml')
27+
@country_lookup_table ||=
28+
begin
29+
path = File.expand_path('../../country_lookup_table.yml', __dir__)
30+
YAML.load_file(path)
31+
end
2832
end
2933

3034
def select_first(sql)

0 commit comments

Comments
 (0)