Skip to content

Commit

Permalink
chore(electron): Use pvpython instead of pvbatch
Browse files Browse the repository at this point in the history
  • Loading branch information
jourdain committed Nov 2, 2017
1 parent 4d03130 commit 7b66e74
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion electron/aboutPage.js
Expand Up @@ -2,7 +2,7 @@ const openAboutWindow = require('about-window').default;
const join = require('path').join;

module.exports = {
label: 'About Arctic Viewer',
label: 'About ParaViewWeb Visualizer',
click: () => openAboutWindow({
icon_path: join(__dirname, 'icon.png'),
package_json_dir: join(__dirname, '../'),
Expand Down
3 changes: 2 additions & 1 deletion electron/index.js
Expand Up @@ -25,7 +25,7 @@ function findFile(basePath, fileName) {

function updateConfig(basepath) {
const config = {};
config.pvbatch = findFile(basepath[0], 'pvbatch');
config.pvbatch = findFile(basepath[0], 'pvpython');
config.visualizer = findFile(basepath[0], 'pvw-visualizer.py');
if (config.visualizer) {
config.www = path.join(path.dirname(path.dirname(config.visualizer)), 'www');
Expand Down Expand Up @@ -107,6 +107,7 @@ function startServer() {
getPort().then((port) => {
const cmd = [
`"${settings.get('paraview.pvbatch')}"`,
'--force-offscreen-rendering',
`"${settings.get('paraview.visualizer')}"`,
'--content',
`"${settings.get('paraview.www')}"`,
Expand Down

0 comments on commit 7b66e74

Please sign in to comment.