File tree Expand file tree Collapse file tree 3 files changed +31
-2
lines changed Expand file tree Collapse file tree 3 files changed +31
-2
lines changed Original file line number Diff line number Diff line change @@ -202,7 +202,13 @@ def get_folders(self):
202202 folders .append (self .valid_subfolders (folder ))
203203
204204 else : # no multiroot, no subroot
205- folders = self .valid_subfolders (self .project_abs_basepath [0 ])
205+ # check if this the project is just a plain structure with just one single object inside (either HSF or GSM)
206+ basepath = self .project_abs_basepath [0 ]
207+ basename = os .path .basename (os .path .normpath (basepath ))
208+ if is_dir (basepath , basename ) or is_file (basepath , basename + '.gsm' ):
209+ folders = self .project_abs_basepath # return list
210+ else :
211+ folders = self .valid_subfolders (basepath )
206212
207213 return folders
208214
Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ has successfully updated
1111
1212*************************
1313
14- VERSION 3.3 .0
14+ VERSION 3.4 .0
1515
1616*************************
1717
Original file line number Diff line number Diff line change 1+
2+ ██████╗ ██████╗ ██╗
3+ ██╔════╝ ██╔══██╗██║
4+ ██║ ███╗██║ ██║██║
5+ ██║ ██║██║ ██║██║
6+ ╚██████╔╝██████╔╝███████╗
7+ ╚═════╝ ╚═════╝ ╚══════╝
8+
9+ GDL Sublime Text package
10+ has successfully updated
11+
12+ *************************
13+
14+ VERSION 3.4.1
15+
16+ *************************
17+
18+ CHANGELOG:
19+
20+ There was some hiccup because the release numbers got jumbled around. My bad. This should be fixed now.
21+
22+ # fixed
23+ • The plugin exited with an error message when the user had a plain structure with just one object in the folder. This is fixed.
You can’t perform that action at this time.
0 commit comments