Skip to content

Commit

Permalink
Merge pull request #30 from andreped/28-bug-unable-to-debug-cli-script
Browse files Browse the repository at this point in the history
Dynamic import handling to allow python debugging
  • Loading branch information
andreped authored Sep 11, 2024
2 parents bb66bc5 + 67cbf0e commit d8de072
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -63,3 +63,6 @@ jobs:
- name: Test CLI
run: vsi2tif --help
shell: bash

- name: Test Python debugger
run: python vsi2tif/vsi2tif.py --help
8 changes: 6 additions & 2 deletions vsi2tif/vsi2tif.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,12 @@
import os
from argparse import ArgumentParser

from .src.process import cellsens2tif_batch
from .src.process import cellsens2tif_single
try:
from .src.process import cellsens2tif_batch
from .src.process import cellsens2tif_single
except ImportError:
from src.process import cellsens2tif_batch
from src.process import cellsens2tif_single


def main():
Expand Down

0 comments on commit d8de072

Please sign in to comment.