177 if ( |
177 if ( |
178 subpackage["is_dir"] |
178 subpackage["is_dir"] |
179 and subpackage["name"] != "__pycache__" |
179 and subpackage["name"] != "__pycache__" |
180 and len( |
180 and len( |
181 self.__remotefsInterface.glob( |
181 self.__remotefsInterface.glob( |
182 os.path.join(subpackage["path"], "__init__.*") |
182 self.__remotefsInterface.join( |
|
183 subpackage["path"], "__init__.*" |
|
184 ) |
183 ) |
185 ) |
184 ) != 0 |
186 ) != 0 |
185 ): |
187 ): |
186 subpackagesList.append( |
188 subpackagesList.append( |
187 FileSystemUtilities.remoteFileName(subpackage["path"]) |
189 FileSystemUtilities.remoteFileName(subpackage["path"]) |
197 subpackagesList.append(subpackage.path) |
199 subpackagesList.append(subpackage.path) |
198 |
200 |
199 tot = 0 |
201 tot = 0 |
200 for ext in supportedExt: |
202 for ext in supportedExt: |
201 for subpackage in subpackagesList: |
203 for subpackage in subpackagesList: |
202 tot += len(glob.glob(FileSystemUtilities.normjoinpath(subpackage, ext))) |
204 if FileSystemUtilities.isRemoteFileName(subpackage): |
|
205 tot += len( |
|
206 self.__remotefsInterface.glob( |
|
207 self.__remotefsInterface.join(subpackage, ext) |
|
208 ) |
|
209 ) |
|
210 else: |
|
211 tot += len( |
|
212 glob.glob(FileSystemUtilities.normjoinpath(subpackage, ext)) |
|
213 ) |
203 progress = EricProgressDialog( |
214 progress = EricProgressDialog( |
204 self.tr("Parsing modules..."), |
215 self.tr("Parsing modules..."), |
205 None, |
216 None, |
206 0, |
217 0, |
207 tot, |
218 tot, |