Skip to content

Compile the scripts before calling exec in verdi run#2166

Merged
sphuber merged 1 commit into
aiidateam:developfrom
sphuber:fix_2165_verdi_run_compile
Nov 10, 2018
Merged

Compile the scripts before calling exec in verdi run#2166
sphuber merged 1 commit into
aiidateam:developfrom
sphuber:fix_2165_verdi_run_compile

Conversation

@sphuber
Copy link
Copy Markdown
Contributor

@sphuber sphuber commented Nov 10, 2018

Fixes #2165

This extra step is necessary for python modules like inspect to
function normally. Without this change, running a script with verdi run
that defines a workfunction and then runs it would fail, because inspect
would fail to determine the path of the source file of the workfunction,
i.e. the script that was passed to verdi run. This change fixes that.

This extra step is necessary for python modules like `inspect` to
function normally. Without this change, running a script with `verdi run`
that defines a workfunction and then runs it would fail, because inspect
would fail to determine the path of the source file of the workfunction,
i.e. the script that was passed to `verdi run`. This change fixes that.
@coveralls
Copy link
Copy Markdown

coveralls commented Nov 10, 2018

Coverage Status

Coverage increased (+0.03%) to 68.625% when pulling 4a665c9 on sphuber:fix_2165_verdi_run_compile into 9135592 on aiidateam:develop.

@sphuber sphuber merged commit 5a8438d into aiidateam:develop Nov 10, 2018
@sphuber sphuber deleted the fix_2165_verdi_run_compile branch November 10, 2018 08:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Cannot run workfunction defined in same script that is run with verdi run

3 participants