Skip to content

Instantly share code, notes, and snippets.

@komeda-shinji
Created July 23, 2015 12:36
Show Gist options
  • Save komeda-shinji/0443b13c7862fd9c07fb to your computer and use it in GitHub Desktop.
Save komeda-shinji/0443b13c7862fd9c07fb to your computer and use it in GitHub Desktop.
ReText patch
diff -u ReText/__init__.py- ReText/__init__.py
--- ReText/__init__.py- 2014-07-26 17:12:13.000000000 +0900
+++ ReText/__init__.py 2014-10-07 15:54:53.000000000 +0900
@@ -32,7 +32,10 @@
except enchant.errors.Error:
enchant_available = False
-icon_path = "icons/"
+#icon_path = "icons/"
+from distutils.sysconfig import get_python_lib
+module_dir = '%s/ReText' % get_python_lib()
+icon_path = '%s/icons/' % module_dir
DOCTYPE_NONE = ''
DOCTYPE_MARKDOWN = markups.MarkdownMarkup.name
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment