Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Update master

  • Loading branch information...
commit 0b4edae8a9423ba4b73e8c29347b82d80c576ca9 1 parent cc927bc
@joeferner authored
Showing with 4 additions and 1 deletion.
  1. +4 −1 mnm.js
View
5 mnm.js
@@ -1,11 +1,14 @@
#!/usr/bin/env node
+var fs = require('fs');
var path = require('path');
var childProcess = require('child_process');
var Builder = require('mnm');
var builder = new Builder();
var RenderTemplates = require('./render-templates.js');
+var existsSync = fs.existsSync || path.existsSync;
+
builder.appendIncludeDir('src/');
builder.appendIncludeDir('src-dummy/');
@@ -39,7 +42,7 @@ if (process.platform === 'win32') {
if (!wxHome) {
builder.fail("Could not find wxWidgets home. Set the WXWIN environment variable.");
}
- if (!path.existsSync(wxHome)) {
+ if (!existsSync(wxHome)) {
builder.fail("Could not find wxWidgets home. WXWIN is pointing to an invalid directory. " + wxHome);
}
wxConfigPath = './deps/wx-config.exe';
Please sign in to comment.
Something went wrong with that request. Please try again.