Router modifies its own PYTHONPATH (sys.path) #408
jiridanek
started this conversation in
Show and tell
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Both
skstat
andskmanage
need to importskupper_router_internal
. This module is installed outside of the default PYTHONPATH, therefore the tools modify the path first (in running Python program it is accessed throughsys.path
) and then they perform the import.skupper-router/tools/skmanage
Lines 27 to 28 in 662be06
skupper-router/tools/skstat
Lines 26 to 27 in 8d37e0a
@astitcher @kgiusti not sure if we want to really do something about it? Regarding RPMs, @ssorj suggested to put
skupper_router_internal
into askupper-router-common
RPM subpackage, which will be then depended upon by both-tools
and the main (skrouterd) subpackages. In qpid dispatch RPMs (in fedora, etc.) this dependency is not captured. You can doSo, actually, there is a bug there for @mcressman, @kpvdr or irina, whoever manages the dispatch packages now.
Beta Was this translation helpful? Give feedback.
All reactions