A simple Python mapping for querying the dot-separated paths from the user's cursor.
classSomeClass(object):
defget_thing(self):
# ...stuff# <-- cursor located here# ...Just call this function:
:echoGetCurrentDotPath()And it will return "SomeClass.get_thing".
This Vim plugin was built specifically to work with Rez packages. If the Vim function is run within a Rez package, you'll get the full Python import, up until wherever you've placed the Rez package.py file.
Run this
PYTHONPATH=$PWD/pythonx python -m unittest discoverAnd all tests should pass.