Skip to content

Commit

Permalink
Fix imports and create folder if not exist
Browse files Browse the repository at this point in the history
Ref: hl7au#4
  • Loading branch information
projkov committed Nov 22, 2024
1 parent 0c12901 commit 7143e9a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
5 changes: 3 additions & 2 deletions xls-converter/xls_converter/main.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import pandas as pd
import os
import argparse
from constants import SHEETS
from processing_utils import process_sheet, post_process_sheet
from .constants import SHEETS
from .processing_utils import process_sheet, post_process_sheet

parser = argparse.ArgumentParser(
prog="Test Data converter",
Expand All @@ -15,6 +15,7 @@
if __name__ == "__main__":
args = parser.parse_args()
xlsx = pd.ExcelFile(args.filename)
os.makedirs(args.destination, exist_ok=True)
for sheet in SHEETS:
file_name = f"AU Core Sample Data - {sheet}.csv"
file_path = os.path.join(args.destination, file_name)
Expand Down
2 changes: 1 addition & 1 deletion xls-converter/xls_converter/processing_utils.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from constants import (
from .constants import (
ALLERGY_INTOLERANCE_REPLACE,
HEALTHCARE_SERVICE_REPLACE,
ORGANIZATION_REPLACE,
Expand Down

0 comments on commit 7143e9a

Please sign in to comment.