Skip to content

Commit efe773e

Browse files
committed
ENH: vtkjs HTML bundling use data file path for html output
1 parent 8d0c44f commit efe773e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Web/Python/vtkmodules/web/vtkjs_helper.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,8 @@ def convertDirectoryToZipFile(directoryPath):
3535

3636
def addDataToViewer(dataPath, srcHtmlPath):
3737
if os.path.isfile(dataPath) and os.path.exists(srcHtmlPath):
38-
dstHtmlPath = '%s.html' % os.path.basename(dataPath)[:-6]
38+
dstDir = os.path.dirname(dataPath)
39+
dstHtmlPath = os.path.join(dstDir, '%s.html' % os.path.basename(dataPath)[:-6])
3940

4041
# Extract data as base64
4142
with open(dataPath, 'rb') as data:

0 commit comments

Comments
 (0)