Skip to content

Commit

Permalink
Merge pull request #915 from stevej2608/stevej2608
Browse files Browse the repository at this point in the history
dash-generate-components crashes on windows
  • Loading branch information
alexcjohnson committed Sep 9, 2019
2 parents 6baf984 + b0c4d37 commit c702899
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion dash/development/component_generator.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,9 @@ def generate_components(
reserved_patterns = "|".join("^{}$".format(p) for p in reserved_words)

os.environ["NODE_PATH"] = "node_modules"

cmd = shlex.split(
"node {} {} {} {}".format(
'node {} "{}" "{}" {}'.format(
extract_path, ignore, reserved_patterns, components_source
),
posix=not is_windows,
Expand Down
2 changes: 1 addition & 1 deletion dash/extract-meta.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ const path = require('path');
const reactDocs = require('react-docgen');

const componentPaths = process.argv.slice(4);
const ignorePattern = new RegExp(process.argv[2]);
const ignorePattern = new RegExp(process.argv[2].split('"').join(''));
const reservedPatterns = process.argv[3].split('|').map(part => new RegExp(part));

let failed = false;
Expand Down

0 comments on commit c702899

Please sign in to comment.