Fixed a few platform related issues.

Fri, 16 Sep 2011 19:39:03 +0200

author
Detlev Offenbach <detlev@die-offenbachs.de>
date
Fri, 16 Sep 2011 19:39:03 +0200
changeset 1330
da34ee6d1d30
parent 1329
ac21bb9cf8b9
child 1335
60a540cabd68

Fixed a few platform related issues.

Project/AddDirectoryDialog.py file | annotate | diff | comparison | revisions
Project/AddFileDialog.py file | annotate | diff | comparison | revisions
--- a/Project/AddDirectoryDialog.py	Fri Sep 16 19:34:07 2011 +0200
+++ b/Project/AddDirectoryDialog.py	Fri Sep 16 19:39:03 2011 +0200
@@ -140,6 +140,7 @@
         """
         filetype = \
             self.filterComboBox.itemData(self.filterComboBox.currentIndex())
-        return (filetype, self.sourceDirEdit.text(),
-            self.targetDirEdit.text(),
+        return (filetype,
+            Utilities.toNativeSeparators(self.sourceDirEdit.text()),
+            Utilities.toNativeSeparators(self.targetDirEdit.text()),
             self.recursiveCheckBox.isChecked())
--- a/Project/AddFileDialog.py	Fri Sep 16 19:34:07 2011 +0200
+++ b/Project/AddFileDialog.py	Fri Sep 16 19:39:03 2011 +0200
@@ -182,5 +182,7 @@
             source files, the target directory and a flag telling, whether
             the files shall be added as source code
         """
-        return (self.sourceFileEdit.text().split(os.pathsep),
-            self.targetDirEdit.text(), self.sourcecodeCheckBox.isChecked())
+        return (
+            Utilities.toNativeSeparators(self.sourceFileEdit.text().split(os.pathsep)),
+            Utilities.toNativeSeparators(self.targetDirEdit.text()),
+            self.sourcecodeCheckBox.isChecked())

eric ide

mercurial