mirror of
https://github.com/Sudo-JHare/FHIRFLARE-IG-Toolkit.git
synced 2025-11-05 13:35:15 +00:00
Hotifx
fix context relative path.
This commit is contained in:
parent
189ba1d18c
commit
5a6f2072d7
3
app.py
3
app.py
@ -5,6 +5,7 @@ CURRENT_DIR = os.path.abspath(os.path.dirname(__file__))
|
|||||||
# Introduce app_dir variable that can be overridden by environment
|
# Introduce app_dir variable that can be overridden by environment
|
||||||
app_dir = os.environ.get('APP_DIR', CURRENT_DIR)
|
app_dir = os.environ.get('APP_DIR', CURRENT_DIR)
|
||||||
sys.path.append(CURRENT_DIR)
|
sys.path.append(CURRENT_DIR)
|
||||||
|
#sys.path.append(os.path.abspath(os.path.dirname(__file__)))
|
||||||
import datetime
|
import datetime
|
||||||
import shutil
|
import shutil
|
||||||
import queue
|
import queue
|
||||||
@ -2402,6 +2403,8 @@ def api_retrieve_bundles():
|
|||||||
output_zip = os.path.join(temp_dir, zip_filename)
|
output_zip = os.path.join(temp_dir, zip_filename)
|
||||||
|
|
||||||
def generate():
|
def generate():
|
||||||
|
# Push the application context manually for the generator's lifetime
|
||||||
|
with app.app_context():
|
||||||
try:
|
try:
|
||||||
yield from services.retrieve_bundles(
|
yield from services.retrieve_bundles(
|
||||||
fhir_server_url=fhir_server_url,
|
fhir_server_url=fhir_server_url,
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user