Skip to content

Commit dfc6e74

Browse files
committed
changes for Package Control support
1 parent 46f72ed commit dfc6e74

File tree

2 files changed

+4
-7
lines changed

2 files changed

+4
-7
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ To install the plugin, clone it to your Siblime Text 2/3 Package directory with
143143

144144
```
145145
cd ~/.config/sublime-text-3/Packages
146-
git clone https://github.com/generall/aligner.git
146+
git clone https://github.com/generall/aligner.git AutoAligner
147147
```
148148

149149
Default hotkey for alignment is: `["ctrl+k","ctrl+a"]`.

aligner_command.py

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ def run(self, edit, lang='default'):
1515
lines = []
1616
log(lang)
1717
#path = "/home/generall/Dropbox/code/Ruby/aligner"
18-
path = sublime.packages_path() + "/aligner"
18+
path = sublime.packages_path() + "/AutoAligner"
1919
prev_dir = os.getcwd();
2020
os.chdir(path)
2121

@@ -30,11 +30,8 @@ def run(self, edit, lang='default'):
3030

3131
try:
3232
slave = Popen(['ruby', path + '/pipe_launch.rb', lang], stdin=PIPE, stdout=PIPE, stderr=STDOUT)
33-
34-
req_version = (2,7)
35-
cur_version = (sys.version_info.major, sys.version_info.minor)
36-
37-
if cur_version > req_version:
33+
34+
if sys.version_info >= (3,):
3835
slave.stdin.write(bytes(str(len(lines)) + "\n" , "UTF-8"));
3936
slave.stdin.write(bytes(txt_lines + "\n" , "UTF-8"));
4037
slave.stdin.close()

0 commit comments

Comments
 (0)