File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change 11import csv
2+ import os
23import re
34import shlex
45import subprocess
56import sys
67
8+ from pathlib import Path
9+
710from docutils .parsers .rst import directives
811from sphinx .directives import code
912
@@ -116,7 +119,9 @@ def run(self):
116119 # change to that working directory before running the desired command.
117120 # The working directory is omitted from the final output.
118121 # TODO: PATCHED
119- working_directory = self .options .get ('working-directory' , 'src/_includes/cwl/' )
122+ here = os .path .dirname (os .path .realpath (__file__ ))
123+ includes_dir = Path (here , '../../src/_includes/cwl/' ).resolve ()
124+ working_directory = self .options .get ('working-directory' , includes_dir )
120125 if working_directory == '' :
121126 # subprocess default value, so that we can disable it if needed.
122127 working_directory = None
You can’t perform that action at this time.
0 commit comments