threefoldtecharchive / jumpscale9_core

Apache License 2.0
0 stars 2 forks source link

dynamic loader json files contain absolute paths #133

Closed delandtj closed 5 years ago

delandtj commented 6 years ago

if an installation of a plugin is ever moved (its absolute path changed) the json plugin file will contain the OLD absolute paths:

[
    {
        "j.clients": {
            "git": [
                "/opt/code/github/threefoldtech/jumpscale_core/Jumpscale/clients/git/GitFactory.py",
                "GitFactory",
                []
            ],
        ....
        ....

to fix this the absolute path at the front needs to be stripped off and "reconstituted" at runtime from the plugin directories.