Project

General

Profile

Bug #24125

Fix release manager relative imports

Added by Marco Mambelli 3 months ago. Updated about 2 months ago.

Status:
Closed
Priority:
Normal
Category:
-
Target version:
Start date:
03/03/2020
Due date:
% Done:

0%

Estimated time:
First Occurred:
Occurs In:
Stakeholders:
Duration:

Description

When you invoke the release manager as executable the relative import is not working correctly.
One alternative is to invoke using python -m ...
A better solution that allows to maintain the executable script is to set the "__package__" keywork and make sure that ReleaseManager is a package and is in the PYTHONPATH (sys.path)

History

#1 Updated by Marco Mambelli 3 months ago

  • Assignee changed from Marco Mambelli to Bruno Coimbra
  • Status changed from New to Feedback

Changes are in v36/24125

#2 Updated by Bruno Coimbra 3 months ago

  • Assignee changed from Bruno Coimbra to Marco Mambelli

The changes fixed the issue and the script works as expected.

#3 Updated by Marco Mambelli 3 months ago

  • Status changed from Feedback to Resolved

#4 Updated by Marco Mambelli about 2 months ago

  • Status changed from Resolved to Closed


Also available in: Atom PDF