Skip to content

Commit 37da5d6

Browse files
aylwardthewtex
authored andcommitted
BUG: CreateTarball assumes /src/ is unique in path
If src appears earlier in path, it is returned by index instead of the src within the SphinxExample dir. This change updates the index to instead search for SphinxExample.
1 parent 7cf83b2 commit 37da5d6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Utilities/CreateTarball.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
cwd = os.getcwd()
2525
example_name = sys.argv[1]
2626
example_dir = os.path.join(cwd, example_name)
27-
example_idx = example_dir.index('/src/') + 1
27+
example_idx = example_dir.index('SphinxExamples') + 15
2828
html_output_dir = os.path.join(sys.argv[2], 'html', example_dir[example_idx:])
2929

3030
if not os.path.exists( html_output_dir ):

0 commit comments

Comments
 (0)