--- a/eric6/Project/IdlCompilerOptionsDialog.py Tue Apr 13 18:02:59 2021 +0200 +++ b/eric6/Project/IdlCompilerOptionsDialog.py Tue Apr 13 19:59:17 2021 +0200 @@ -132,10 +132,8 @@ """ Private slot to add an 'Include Directory'. """ - if self.__project: - defaultDirectory = self.__project.getProjectPath() - else: - defaultDirectory = "" + defaultDirectory = (self.__project.getProjectPath() if self.__project + else "") path, ok = E5PathPickerDialog.getPath( self, self.tr("Include Directory"),