WIP:relate to bug request 2699, rename the python-tqt libs to avoid conflicts with upstream. #4

Closed
Ghost wants to merge 1 commits from fix/bug2699 into master
Ghost commented 2 years ago
need https://mirror.git.trinitydesktop.org/gitea/TDE/sip4-tqt/pulls/2
Ghost added the PR/wip label 2 years ago
Ghost added 1 commit 2 years ago
MicheleC reviewed 2 years ago
# Get the SIP configuration.
try:
from sip4_tqt import sipconfig
import siptrinityconfig
Owner

Maybe I am saying something wrong because I am not up to speed with all the discussion, but wouldn't be easier to have something like:

from siptrinityconfig import sipconfig

or even better:

from sip_trinity_config import sipconfig
Maybe I am saying something wrong because I am not up to speed with all the discussion, but wouldn't be easier to have something like: ``` from siptrinityconfig import sipconfig ``` or even better: ``` from sip_trinity_config import sipconfig ```
Ghost commented 2 years ago
Poster

Slavek wanted those two Python modules renamed to put them in the main Python directory.

Either you rename them, then you load them as:

import whatevername

or you use a subfolder like:

from mysubfolder import sipconfig
Slavek wanted those two Python modules renamed to put them in the main Python directory. Either you rename them, then you load them as: ``` import whatevername ``` or you use a subfolder like: ``` from mysubfolder import sipconfig ```
Owner

Uhm... as long as my understanding of python goes, the from-import clause work as

from <module name> import <object>

So

from sip_trinity_config import sipconfig

would look for the sip_trinity_config (renamed as asked by Slavek) and load the sipconfig from there.

Uhm... as long as my understanding of python goes, the from-import clause work as ``` from <module name> import <object> ``` So ``` from sip_trinity_config import sipconfig ``` would look for the sip_trinity_config (renamed as asked by Slavek) and load the sipconfig from there.
MicheleC reviewed 2 years ago
import siptrinityconfig
except:
print "Unable to import the sipconfig module. Please make sure you have"
print "Unable to import the siptrinityconfig module. Please make sure you have"
Owner

And

print "Unable to import the sipconfig from siptrinityconfig module.  Please make sure you have"
And ``` print "Unable to import the sipconfig from siptrinityconfig module. Please make sure you have" ```
Ghost commented 2 years ago
Poster

WIP, all the reference in the doc for sip and python-tqt have to be adjusted as well.

WIP, all the reference in the doc for sip and python-tqt have to be adjusted as well.
Ghost commented 2 years ago
Poster

This work won't go anywhere, PR is closed.

This work won't go anywhere, PR is closed.
Ghost closed this pull request 2 years ago
Ghost deleted branch fix/bug2699 2 years ago
This pull request cannot be reopened because the branch was deleted.
Sign in to join this conversation.
No reviewers
No Milestone
No Assignees
2 Participants
Notifications
Due Date

No due date set.

Dependencies

No dependencies set.

Reference: TDE/pytqt#4
Loading…
There is no content yet.