Skip to content
This repository has been archived by the owner on Apr 5, 2018. It is now read-only.

Commit

Permalink
Merge pull request #3 from fasiha/windowsfix
Browse files Browse the repository at this point in the history
Spawn directly invokes Python, fixes #2
  • Loading branch information
rvagg committed Jul 17, 2013
2 parents d1be63c + fa81fd5 commit 1cb2cfa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ var spawn = require('child_process').spawn
, '-l', options.lang || defaultLang
, '-P', 'encoding=' + (options.encoding || defaultEncoding)
]
, exec = spawn(path.join(__dirname, 'vendor/pygments/pygmentize'), execArgs)
, exec = spawn("python", [path.join(__dirname, 'vendor/pygments/pygmentize')].concat(execArgs))

return typeof code == 'string' && typeof callback == 'function'
? fromString(exec, code, callback)
Expand Down

0 comments on commit 1cb2cfa

Please sign in to comment.