Skip to content

Commit

Permalink
feat: Update logic to enable local debugging (#17)
Browse files Browse the repository at this point in the history
  • Loading branch information
lfvbarcus authored Mar 19, 2024
1 parent d873449 commit d758ada
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/openapi_to_asciidoc/convert.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
from importlib.metadata import version
from typing import TextIO, Union

if __package__ is None:
if __package__ is None or len(__package__) == 0:
sys.path.insert(0, os.path.abspath(os.path.join(os.path.dirname(__file__), "..")))
from openapi_to_asciidoc.objects import OpenApi, OpenApiSchema
else:
Expand Down

0 comments on commit d758ada

Please sign in to comment.