Skip to content
Browse files

Fixed indentation import to work when Alignment is loaded before Default

  • Loading branch information...
1 parent c23c8d7 commit fa9e922c191a4cb9d5eda209fcc08dc672a35106 @wbond committed
Showing with 11 additions and 1 deletion.
  1. +11 −1
@@ -2,7 +2,17 @@
import sublime_plugin
import re
import math
-from indentation import line_and_normed_pt as normed_rowcol
+import os
+import sys
+# This is necessary due to load order of packages in Sublime Text 2
+sys.path.append(os.path.join(sublime.packages_path(), 'Default'))
+indentation = __import__('indentation')
+del sys.path[-1]
+normed_rowcol = indentation.line_and_normed_pt
def convert_to_mid_line_tabs(view, edit, tab_size, pt, length):
spaces_end = pt + length

0 comments on commit fa9e922

Please sign in to comment.
Something went wrong with that request. Please try again.