Coder Social home page Coder Social logo

Comments (2)

marco-tranzatto avatar marco-tranzatto commented on July 21, 2024

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.

marco-tranzatto avatar marco-tranzatto commented on July 21, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.