Skip to content

Commit

Permalink
Merge pull request #90 from usegalaxy-eu/bug-fix
Browse files Browse the repository at this point in the history
Bugfix: isa-json not working when tool is not launched in the ENA-upload-cli directory
  • Loading branch information
bedroesb authored Feb 26, 2024
2 parents 201ecd6 + 5768145 commit b8fcc64
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ena_upload/json_parsing/characteristic.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ class IsaBase:

@classmethod
def validate_json(self, isa_json: Dict[str, str], schema):
schema_path = os.path.join(os.curdir, "ena_upload", "json_parsing", "json_schemas", schema)

base_path = os.path.abspath(os.path.dirname(__file__))
schema_path = os.path.join(base_path, 'json_schemas', schema)
json_file = open(schema_path)
json_schema = json.load(json_file)

Expand Down

0 comments on commit b8fcc64

Please sign in to comment.