Skip to content

Commit

Permalink
Allow subsequent notebooks to change their directories for relative i…
Browse files Browse the repository at this point in the history
…mport
  • Loading branch information
mam10eks committed Nov 25, 2023
1 parent 0d4ef5a commit 1ad0230
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tira-ir-starters/pyterrier/run-pyterrier-notebook.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ def main(args):
os.environ['TIRA_OUTPUT_DIRECTORY'] = os.path.abspath(args.output)

if args.chdir:
print('Change directory to allow relative imports to "{args.chdir}".')
print('Change directory to allow relative imports to "{args.chdir}".', flush=True)
os.chdir(args.chdir)

command = f'runnb --allow-not-trusted {args.notebook}'
Expand Down

0 comments on commit 1ad0230

Please sign in to comment.