Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Wrong path for Debian/Ubuntu? #2

Open
alfonsosanchezbeato opened this issue Mar 6, 2019 · 1 comment
Open

Wrong path for Debian/Ubuntu? #2

alfonsosanchezbeato opened this issue Mar 6, 2019 · 1 comment

Comments

@alfonsosanchezbeato
Copy link
Contributor

alfonsosanchezbeato commented Mar 6, 2019

I see that site-packages is used in some places:

  if os.path.exists('/usr/lib/python2.7/site-packages'):
          sys.path.append('/usr/lib/python2.7/site-packages')

Should not this be 'dist-packages' for debian/ubuntu?

@vladsokolovsky
Copy link
Collaborator

Added path to 'dist-packages':

commit 43b400d
Author: Vladimir Sokolovsky [email protected]
Date: Mon Mar 11 10:27:01 2019 -0500

Added path to the python dist-packages to support Debian/Ubuntu

Signed-off-by: Vladimir Sokolovsky <[email protected]>

vladsokolovsky pushed a commit that referenced this issue Jun 1, 2020
Example:
show_irq_affinity.sh mlx5_0 show_cpu_number
Note: without the show_cpu_number flag, the output will be as it was.

output before:
124: 0,00000001
125: 0,00000002
126: 0,00000004
127: 0,00000008
128: 0,00000010
129: 0,00000020
130: 0,00000040

output after:
124 (cpu #0): 0,00000001
125 (cpu #1): 0,00000002
126 (cpu #2): 0,00000004
127 (cpu #3): 0,00000008
128 (cpu #4): 0,00000010
129 (cpu #5): 0,00000020
130 (cpu #6): 0,00000040

Signed-off-by: Guy Twig <[email protected]>
Signed-off-by: Vladimir Sokolovsky <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants