I’m finally getting a blog started. I’m dual booting Windows and Ubuntu, and had to fix rubypython on Windows (so Octopress can use Pygments for syntax highlighting). I took this pull request and modified it slightly to work with newer Python installers.
This is how I fixed syntax highlighting lib/rubypython/pythonexec.rb
1234567891011121314151617
ifFFI::Platform.windows?# Do this after trying to add alternative extensions, # since windows install has a python27.a and can cause # troble.## Some Windows python installers install the DLL in the python directory# others install in the Windows system directory. So we should search both.path=File.dirname(@python)windir=ENV['WINDIR']# Windows Python doesn't like ' with inner " so we have to switch it around. winversion=%x(#{@python} -c "import sys; print '%d%d' % sys.version_info[:2]").chompdll="python#{winversion}.dll"locations<<File.join(windir,"System32",dll)locations<<File.join(windir,"SysWOW64",dll)locations<<File.join(path,dll)locations<<File.join(path,"libs",dll)end