Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Usage from another addon? #2

Open
gregglind opened this Issue · 1 comment

2 participants

@gregglind

I get can get the repl going from the addon-dir, but how do I use it from another addon?

I tried...

~/gits/someaddon $ cfx run --extra-packages=jep4repl
Traceback (most recent call last):
  File "/Users/glind/bin/cfx", line 33, in <module>
    cuddlefish.run()
  File "/Users/glind/gits/addon-sdk/python-lib/cuddlefish/__init__.py", line 626, in run
    deps = packaging.get_deps_for_targets(pkg_cfg, targets)
  File "/Users/glind/gits/addon-sdk/python-lib/cuddlefish/packaging.py", line 275, in get_deps_for_targets
    raise PackageNotFoundError(dep, required_reason)
cuddlefish.packaging.PackageNotFoundError: jep4repl (specified as target)
@Gozala
Owner

You're doing it right way it's just name is not jep4repl but repl instead. But if you want to use it that way from you're add-on you'll have to require repl module and strat server by calling repl function.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.