Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

silence pkg_resources warnings #4

Closed
tmm1 opened this issue Aug 30, 2011 · 1 comment
Closed

silence pkg_resources warnings #4

tmm1 opened this issue Aug 30, 2011 · 1 comment

Comments

@tmm1
Copy link
Contributor

tmm1 commented Aug 30, 2011

--- vendor/gems/ruby/1.8/gems/pygments.rb-0.1.3/lib/pygments/ffi.rb.orig        2011-08-18 12:37:48.000000000 -0700
+++ vendor/gems/ruby/1.8/gems/pygments.rb-0.1.3/lib/pygments/ffi.rb     2011-08-18 12:37:53.000000000 -0700
@@ -6,6 +6,7 @@

     def start(pygments_path = File.expand_path('../../../vendor/Pygments-1.4/', __FILE__))
       RubyPython.start
+      RubyPython.import('pkg_resources') rescue nil
       sys = RubyPython.import('sys')
       sys.path.insert(0, pygments_path)
       sys.path.insert(0, File.expand_path('../../../vendor/python2-chardet-2.0.1/', __FILE__))
@tmm1
Copy link
Contributor Author

tmm1 commented Sep 22, 2011

Closed in 992f316

@tmm1 tmm1 closed this as completed Sep 22, 2011
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant