{"action":"created","issue":{"url":"https://api.github.com/repos/radical-cybertools/saga-python/issues/459","labels_url":"https://api.github.com/repos/radical-cybertools/saga-python/issues/459/labels{/name}","comments_url":"https://api.github.com/repos/radical-cybertools/saga-python/issues/459/comments","events_url":"https://api.github.com/repos/radical-cybertools/saga-python/issues/459/events","html_url":"https://github.com/radical-cybertools/saga-python/issues/459","id":104234926,"number":459,"title":"Register adaptors on module install","user":{"login":"jvegasbsc","id":13482714,"avatar_url":"https://avatars.githubusercontent.com/u/13482714?v=3","gravatar_id":"","url":"https://api.github.com/users/jvegasbsc","html_url":"https://github.com/jvegasbsc","followers_url":"https://api.github.com/users/jvegasbsc/followers","following_url":"https://api.github.com/users/jvegasbsc/following{/other_user}","gists_url":"https://api.github.com/users/jvegasbsc/gists{/gist_id}","starred_url":"https://api.github.com/users/jvegasbsc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jvegasbsc/subscriptions","organizations_url":"https://api.github.com/users/jvegasbsc/orgs","repos_url":"https://api.github.com/users/jvegasbsc/repos","events_url":"https://api.github.com/users/jvegasbsc/events{/privacy}","received_events_url":"https://api.github.com/users/jvegasbsc/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/radical-cybertools/saga-python/labels/Enhancement","name":"Enhancement","color":"84b6eb"},{"url":"https://api.github.com/repos/radical-cybertools/saga-python/labels/To%20discuss","name":"To discuss","color":"5319e7"}],"state":"open","locked":false,"assignee":{"login":"andre-merzky","id":1319674,"avatar_url":"https://avatars.githubusercontent.com/u/1319674?v=3","gravatar_id":"","url":"https://api.github.com/users/andre-merzky","html_url":"https://github.com/andre-merzky","followers_url":"https://api.github.com/users/andre-merzky/followers","following_url":"https://api.github.com/users/andre-merzky/following{/other_user}","gists_url":"https://api.github.com/users/andre-merzky/gists{/gist_id}","starred_url":"https://api.github.com/users/andre-merzky/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andre-merzky/subscriptions","organizations_url":"https://api.github.com/users/andre-merzky/orgs","repos_url":"https://api.github.com/users/andre-merzky/repos","events_url":"https://api.github.com/users/andre-merzky/events{/privacy}","received_events_url":"https://api.github.com/users/andre-merzky/received_events","type":"User","site_admin":false},"milestone":null,"comments":2,"created_at":"2015-09-01T10:20:05Z","updated_at":"2015-09-01T10:50:20Z","closed_at":null,"body":"Hi\r\n\r\nI have created an adaptors for a machine that have a \"special\" PBS installation. This adaptor is supposed to be distributed with the main application package (autosubmit). I don´t know which is the preferred method to register an adaptor for SAGA from another package. \r\n\r\nThanks in advance for your help!\r\n\r\nJavier"},"comment":{"url":"https://api.github.com/repos/radical-cybertools/saga-python/issues/comments/136672226","html_url":"https://github.com/radical-cybertools/saga-python/issues/459#issuecomment-136672226","issue_url":"https://api.github.com/repos/radical-cybertools/saga-python/issues/459","id":136672226,"user":{"login":"andre-merzky","id":1319674,"avatar_url":"https://avatars.githubusercontent.com/u/1319674?v=3","gravatar_id":"","url":"https://api.github.com/users/andre-merzky","html_url":"https://github.com/andre-merzky","followers_url":"https://api.github.com/users/andre-merzky/followers","following_url":"https://api.github.com/users/andre-merzky/following{/other_user}","gists_url":"https://api.github.com/users/andre-merzky/gists{/gist_id}","starred_url":"https://api.github.com/users/andre-merzky/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andre-merzky/subscriptions","organizations_url":"https://api.github.com/users/andre-merzky/orgs","repos_url":"https://api.github.com/users/andre-merzky/repos","events_url":"https://api.github.com/users/andre-merzky/events{/privacy}","received_events_url":"https://api.github.com/users/andre-merzky/received_events","type":"User","site_admin":false},"created_at":"2015-09-01T10:50:20Z","updated_at":"2015-09-01T10:50:20Z","body":"Hi again, \r\n\r\nwould you mind checking the `feature/external_adaptors` branch?  There you should be able to do something like the following:\r\n\r\n```\r\n$ unset SAGA_ADAPTOR_PATH \r\n$ python -c 'import saga; s=saga.Session()' 2>&1 | grep loading |tail -n 3\r\n2015-09-01 12:30:18,809: radical.saga        : MainProcess                     : MainThread     : INFO    : loading  adaptor saga.adaptors.globus_online.go_file\r\n2015-09-01 12:30:18,810: radical.saga        : MainProcess                     : MainThread     : INFO    : loading  adaptor saga.adaptors.torque.torquejob\r\n2015-09-01 12:30:18,812: radical.saga        : MainProcess                     : MainThread     : INFO    : loading  adaptor saga.adaptors.pbspro.pbsprojob\r\n\r\n$ export SAGA_ADAPTOR_PATH=saga.adaptors.shell.shell_job:saga.adaptors.shell.shell_file\r\n$ python -c 'import saga; s=saga.Session()' 2>&1 | grep loading |tail -n 5\r\n2015-09-01 12:30:22,898: radical.saga        : MainProcess                     : MainThread     : INFO    : loading  adaptor saga.adaptors.globus_online.go_file\r\n2015-09-01 12:30:22,900: radical.saga        : MainProcess                     : MainThread     : INFO    : loading  adaptor saga.adaptors.torque.torquejob\r\n2015-09-01 12:30:22,903: radical.saga        : MainProcess                     : MainThread     : INFO    : loading  adaptor saga.adaptors.pbspro.pbsprojob\r\n2015-09-01 12:30:22,904: radical.saga        : MainProcess                     : MainThread     : INFO    : loading  adaptor saga.adaptors.shell.shell_job\r\n2015-09-01 12:30:22,906: radical.saga        : MainProcess                     : MainThread     : INFO    : loading  adaptor saga.adaptors.shell.shell_file\r\n```\r\n\r\nIn other words, you should be able to point `SAGA_ADAPTOR_PATH` to the location of module install for your adaptor, and it should then be picked up at that location.  Is that approximately what you were looking for?"}}