pygments / pygments.rb

💎 Ruby wrapper for Pygments syntax highlighter
MIT License
572 stars 141 forks source link

Fails when python is installed in a dir with space (on windows) #34

Closed joewood closed 11 years ago

joewood commented 12 years ago

When the code determines the path to the python executable i may contain a path a space in it on Windows (e.g. c:\program files (x86)\python27). The path is later used as a command without quotation marks. For Windows the command should be quoted just in case.

A workaround is to change the python path to c:\progra~2\pyhton27.

tnm commented 11 years ago

This is out-moded since 0.3.0.

earshinov commented 6 years ago

@tnm Can you please clarify what "out-moded" means for those unfamiliar with the slang?

The issue still persists in pygments.rb v1.2.1 (which is the most recent version, published in December 2017 according to https://rubygems.org/gems/pygments.rb/versions/).

It is a crying shame that spaces in paths are still an issue in the 21st century, at least in Ruby world.