@@ -135,6 +135,7 @@ def select_project(self, select):
135
135
if select < 0 : # will be -1 if panel was cancelled
136
136
return
137
137
self .project_folder = os .path .join (self .nr_path , folders [select ])
138
+ self .project_folder = folders [select ]
138
139
self .delegator () # go on here
139
140
140
141
def show_quick_panel (self , options , done ):
@@ -146,9 +147,13 @@ def delegator(self):
146
147
""" Delegates back to the specific calling class.
147
148
Also makes the `project_folder` path absolut.
148
149
"""
150
+ # join with new root
151
+ self .project_folder = os .path .join (self .nr_path , self .project_folder )
149
152
# make absolut path, since relative paths might introduce errors
150
153
self .project_folder = os .path .join (self .project_path_abs_root , self .project_folder )
151
154
155
+ log .debug ("project_folder: " + self .project_folder )
156
+
152
157
# this delegates back to the calling class.
153
158
self .on_done_proj ()
154
159
@@ -244,11 +249,16 @@ def find_hsf(self):
244
249
# self.folder_to_convert = os.path.join(self.project_folder,self.folders[0])
245
250
# self.on_done_file() # go on here
246
251
247
- self .folder_to_convert = self .project_folder
252
+ # this assumes the user follows the scheme to have a subfolder of the same name
253
+ last_part_of_path = os .path .basename (os .path .normpath (self .project_folder ))
254
+
255
+ self .folder_to_convert = os .path .join (self .project_folder , last_part_of_path )
248
256
self .on_done_file () # go on here
249
257
250
258
def select_hsf (self , select ):
251
- """ Selects on of the possible of folders of the find_hsf() def.
259
+ """ ! Deprecated !
260
+ Now done by super().select_project()
261
+ TODO: Remove.
252
262
"""
253
263
folders = self .folders
254
264
if select < 0 : # will be -1 if panel was cancelled
0 commit comments