You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
My question is the following. How to write a custom python script that use DIRAC API and that may be distributed with a job to be executed during userjob execution?
The text was updated successfully, but these errors were encountered:
My question is the following. How to write a custom python script that use DIRAC API and that may be distributed with a job to be executed during userjob execution?
I think this should work:
importDIRACDIRAC.initialize()
# All remaining DIRAC imports
Basically document the
initialize()
orparseCommandLine()
magicDiscussed in #7114
Originally posted by IgorPelevanyuk July 21, 2023
Hello,
In version 8 the idea behind development of scripts changed a bit.
It looks like it is necessary to include all developed scripts in special
console_scripts
variable insetup.cfg
.Without that the script will throw an error "Something is very wrong" from https://github.com/DIRACGrid/DIRAC/blob/1cd1173303b177dbfe44ede43d18d25514713301/src/DIRAC/Core/Base/Script.py#L55C40-L55C63
My question is the following. How to write a custom python script that use DIRAC API and that may be distributed with a job to be executed during userjob execution?
The text was updated successfully, but these errors were encountered: