{"action":"created","issue":{"url":"https://api.github.com/repos/DIRACGrid/DIRAC/issues/2571","labels_url":"https://api.github.com/repos/DIRACGrid/DIRAC/issues/2571/labels{/name}","comments_url":"https://api.github.com/repos/DIRACGrid/DIRAC/issues/2571/comments","events_url":"https://api.github.com/repos/DIRACGrid/DIRAC/issues/2571/events","html_url":"https://github.com/DIRACGrid/DIRAC/pull/2571","id":104528482,"number":2571,"title":"[v6r15] Allow extensions to extend DErrno","user":{"login":"chaen","id":3728211,"avatar_url":"https://avatars.githubusercontent.com/u/3728211?v=3","gravatar_id":"","url":"https://api.github.com/users/chaen","html_url":"https://github.com/chaen","followers_url":"https://api.github.com/users/chaen/followers","following_url":"https://api.github.com/users/chaen/following{/other_user}","gists_url":"https://api.github.com/users/chaen/gists{/gist_id}","starred_url":"https://api.github.com/users/chaen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chaen/subscriptions","organizations_url":"https://api.github.com/users/chaen/orgs","repos_url":"https://api.github.com/users/chaen/repos","events_url":"https://api.github.com/users/chaen/events{/privacy}","received_events_url":"https://api.github.com/users/chaen/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":9,"created_at":"2015-09-02T17:03:52Z","updated_at":"2015-09-11T13:16:42Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/DIRACGrid/DIRAC/pulls/2571","html_url":"https://github.com/DIRACGrid/DIRAC/pull/2571","diff_url":"https://github.com/DIRACGrid/DIRAC/pull/2571.diff","patch_url":"https://github.com/DIRACGrid/DIRAC/pull/2571.patch"},"body":"This allows extensions to define their specific error codes\r\nIt also groups the error number by system for better tracking of them"},"comment":{"url":"https://api.github.com/repos/DIRACGrid/DIRAC/issues/comments/139543364","html_url":"https://github.com/DIRACGrid/DIRAC/pull/2571#issuecomment-139543364","issue_url":"https://api.github.com/repos/DIRACGrid/DIRAC/issues/2571","id":139543364,"user":{"login":"atsareg","id":679892,"avatar_url":"https://avatars.githubusercontent.com/u/679892?v=3","gravatar_id":"","url":"https://api.github.com/users/atsareg","html_url":"https://github.com/atsareg","followers_url":"https://api.github.com/users/atsareg/followers","following_url":"https://api.github.com/users/atsareg/following{/other_user}","gists_url":"https://api.github.com/users/atsareg/gists{/gist_id}","starred_url":"https://api.github.com/users/atsareg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/atsareg/subscriptions","organizations_url":"https://api.github.com/users/atsareg/orgs","repos_url":"https://api.github.com/users/atsareg/repos","events_url":"https://api.github.com/users/atsareg/events{/privacy}","received_events_url":"https://api.github.com/users/atsareg/received_events","type":"User","site_admin":false},"created_at":"2015-09-11T13:16:42Z","updated_at":"2015-09-11T13:16:42Z","body":"parseCommandLine() in the scripts activates the DIRAc configuration subsystem. No surprise that DIRAC agents, services, executors are also started by scripts. Therefore, in the scripts you have an activated CS after this call and you can import whatever other modules you need. In the other components in the code written by the developers ( not in the framework ) the CS is already activated. Often people forget that for their quick tests, e.g. in the python prompt, and try to run without the CS activation. "}}