Comments (2)
From Python Documentation:
When a module named spam is imported, the interpreter first searches for a built-in module with that name. If not found, it then searches for a file named spam.py in a list of directories given by the variable sys.path. sys.path is initialized from these locations: (1) the directory containing the input script (or the current directory), (2) PYTHONPATH (a list of directory names, with the same syntax as the shell variable PATH), (3) the installation-dependent default.
By printing sbp.client.__file__
(__file__
is the pathname of the file from which the module was loaded, if it was loaded from a file), I could double check that, despite of the PYTHONPATH set in .bashrc, the sbp modules are always loaded from /usr/local/lib/python2.7/dist-packages/sbp-2.2.1-py2.7.egg/sbp
from mav_rtk_gps.
Addressed in PR #24.
Since it is unlikely for a system to use both PiksiV2 and Piksi Multi, the cleanest solution is to use the default path of Python, where SBP module gets installed, and do not modify PYTHONPATH
in .bashrc.
from mav_rtk_gps.
Related Issues (11)
- Documentation Images HOT 11
- Improve Message Time Stamp
- Reset Piksi with rosservice HOT 2
- UART State Not Displayed HOT 1
- Things to change before open source this HOT 4
- Which license before open source? HOT 2
- Read and publish GPS raw pseudo range
- Piksi Multi: publish mesages under "piksi/*" and not under "piksi_multi/*" HOT 1
- Update libsbp to 2.2.1 HOT 1
- Separate MAV parts from ROS Driver HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mav_rtk_gps.