diff --git a/lib/fhir_models/r4/bootstrap/definitions.rb b/lib/fhir_models/r4/bootstrap/definitions.rb index 05f79556..0d2aa819 100644 --- a/lib/fhir_models/r4/bootstrap/definitions.rb +++ b/lib/fhir_models/r4/bootstrap/definitions.rb @@ -3,7 +3,7 @@ module R4 class Definitions include CommonDefinitions extend FHIR::R4 - @ig_file_name = File.join(Dir.pwd, 'lib', 'fhir_models', 'igs', 'hl7.fhir.r4.core.tgz') + @ig_file_name = File.join(__dir__, '..', '..', 'igs', 'hl7.fhir.r4.core.tgz') load_igs(@ig_file_name) end diff --git a/lib/fhir_models/r4b/bootstrap/definitions.rb b/lib/fhir_models/r4b/bootstrap/definitions.rb index 28a2306e..4e3c6487 100644 --- a/lib/fhir_models/r4b/bootstrap/definitions.rb +++ b/lib/fhir_models/r4b/bootstrap/definitions.rb @@ -3,7 +3,7 @@ module R4B class Definitions include CommonDefinitions extend FHIR::R4B - @ig_file_name = File.join(Dir.pwd, 'lib', 'fhir_models', 'igs', 'hl7.fhir.r4b.core.tgz') + @ig_file_name = File.join(__dir__, '..', '..', 'igs', 'hl7.fhir.r4b.core.tgz') load_igs(@ig_file_name) end diff --git a/lib/fhir_models/r5/bootstrap/definitions.rb b/lib/fhir_models/r5/bootstrap/definitions.rb index 5f66897f..10c5b3a6 100644 --- a/lib/fhir_models/r5/bootstrap/definitions.rb +++ b/lib/fhir_models/r5/bootstrap/definitions.rb @@ -3,7 +3,7 @@ module R5 class Definitions include CommonDefinitions extend FHIR::R5 - @ig_file_name = File.join(Dir.pwd, 'lib', 'fhir_models', 'igs', 'hl7.fhir.r5.core.tgz') + @ig_file_name = File.join(__dir__, '..', '..', 'igs', 'hl7.fhir.r5.core.tgz') load_igs(@ig_file_name) end