@@ -9,7 +9,7 @@ class rungiboCommand(sublime_plugin.WindowCommand):
99
1010 _bp_list = []
1111 _bp_folder = 'boilerplates'
12- _package_path = ''
12+ _package_path = None
1313
1414 def _find_path (self ):
1515 if not self ._package_path :
@@ -28,7 +28,7 @@ def _listdir(self):
2828 if zipfile .is_zipfile (package_path ):
2929 # Dealing with .sublime-package file
3030 package = zipfile .ZipFile (package_path , "r" )
31- path = self ._bp_folder + "/"
31+ path = self ._bp_folder + '/'
3232 return [f .replace (path , '' ) for f in package .namelist () if f .startswith (path )]
3333 else :
3434 return os .listdir (os .path .join (package_path , self ._bp_folder ))
@@ -38,7 +38,7 @@ def _loadfile(self, bp):
3838 if zipfile .is_zipfile (package_path ):
3939 # Dealing with .sublime-package file
4040 package = zipfile .ZipFile (package_path , 'r' )
41- path = self ._bp_folder + "/" + bp
41+ path = self ._bp_folder + '/' + bp
4242 f = package .open (path , 'r' )
4343 text = f .read ().decode ()
4444 f .close ()
@@ -52,8 +52,8 @@ def _loadfile(self, bp):
5252
5353 def build_list (self ):
5454 if not self ._bp_list :
55- for dir in self ._listdir ():
56- self ._bp_list .append (dir .replace ('.gitignore' , '' ))
55+ for bp_file in self ._listdir ():
56+ self ._bp_list .append (bp_file .replace ('.gitignore' , '' ))
5757
5858 self .chosen_array = []
5959 self .first_list = self ._bp_list [:] # Copy _bp_list
0 commit comments