[Eric] Other Eric4 path for PyLint
Tonal
tonal at promsoft.ru
Wed Feb 21 09:45:59 GMT 2007
Without this do not generate default config file.
-------------- next part --------------
diff U3 PyLintConfigDialog.py PyLintConfigDialog.py
--- PyLintConfigDialog.py Tue Feb 13 00:32:11 2007
+++ PyLintConfigDialog.py Wed Feb 21 15:31:10 2007
@@ -275,11 +275,8 @@
self.pylintProc = QProcess()
args = QStringList()
- if sys.platform == "win32":
- program = sys.executable
- args.append(self.lint)
- else:
- program = self.lint
+ program = self.lint
+
args.append('--generate-rcfile')
self.connect(self.pylintProc, SIGNAL('readyReadStandardOutput()'),
@@ -326,7 +323,8 @@
self.pylintProc.setReadChannel(QProcess.StandardOutput)
while self.pylintProc and self.pylintProc.canReadLine():
- self.buf.append(self.pylintProc.readLine())
+ line = unicode(self.pylintProc.readLine()).rstrip()
+ self.buf.append(line)
self.buf.append(os.linesep)
def __readStderr(self):
More information about the Eric
mailing list