Skip to content

Commit

Permalink
Use absolute imports to prevent import errors. Bat script to create e…
Browse files Browse the repository at this point in the history
…xecutable
  • Loading branch information
gabryelreyes committed Jun 20, 2024
1 parent 198fe9a commit 756fa15
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
6 changes: 3 additions & 3 deletions src/pyPolarionCli/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,9 @@
import logging
from polarion.polarion import Polarion

from .version import __version__, __author__, __email__, __repository__, __license__
from .ret import Ret
from .cmd_search import register as cmd_search_register
from pyPolarionCli.version import __version__, __author__, __email__, __repository__, __license__
from pyPolarionCli.ret import Ret
from pyPolarionCli.cmd_search import register as cmd_search_register


################################################################################
Expand Down
2 changes: 1 addition & 1 deletion src/pyPolarionCli/cmd_search.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
from polarion.polarion import Polarion
from polarion.project import Project
from polarion.workitem import Workitem
from .ret import Ret
from pyPolarionCli.ret import Ret

################################################################################
# Variables
Expand Down
2 changes: 2 additions & 0 deletions tools/create_executable.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
rem Please run this script from the root path. ".\tools\create_executable.bat"
pyinstaller --noconfirm --onefile --console --name "pyPolarionCli" --add-data "./pyproject.toml;." "./src/pyPolarionCli/__main__.py"

0 comments on commit 756fa15

Please sign in to comment.