We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8d0c44f commit efe773eCopy full SHA for efe773e
Web/Python/vtkmodules/web/vtkjs_helper.py
@@ -35,7 +35,8 @@ def convertDirectoryToZipFile(directoryPath):
35
36
def addDataToViewer(dataPath, srcHtmlPath):
37
if os.path.isfile(dataPath) and os.path.exists(srcHtmlPath):
38
- dstHtmlPath = '%s.html' % os.path.basename(dataPath)[:-6]
+ dstDir = os.path.dirname(dataPath)
39
+ dstHtmlPath = os.path.join(dstDir, '%s.html' % os.path.basename(dataPath)[:-6])
40
41
# Extract data as base64
42
with open(dataPath, 'rb') as data:
0 commit comments