Skip to content

Commit 4d63e61

Browse files
committed
new version
1 parent e37e5d6 commit 4d63e61

File tree

3 files changed

+31
-2
lines changed

3 files changed

+31
-2
lines changed

GDL.py

+7-1
Original file line numberDiff line numberDiff 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

Messages/v3.3.0.txt renamed to Messages/v3.4.0.txt

+1-1
Original file line numberDiff line numberDiff 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

Messages/v3.4.1.txt

+23
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
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.

0 commit comments

Comments
 (0)