Fixed more issues with directory parsing.
This commit is contained in:
parent
721eb56608
commit
a4410e9f7e
1 changed files with 0 additions and 4 deletions
4
main.py
4
main.py
|
|
@ -468,7 +468,6 @@ class MainWindow(QtGui.QWidget, CommandBase):
|
||||||
directory = QtGui.QFileDialog.getExistingDirectory(self, "Find Project Directory",
|
directory = QtGui.QFileDialog.getExistingDirectory(self, "Find Project Directory",
|
||||||
self.project_dir() or QtCore.QDir.currentPath())
|
self.project_dir() or QtCore.QDir.currentPath())
|
||||||
if directory:
|
if directory:
|
||||||
directory = directory.replace('\\', '\\\\')
|
|
||||||
self.reset_settings()
|
self.reset_settings()
|
||||||
self.input_line.setText(directory)
|
self.input_line.setText(directory)
|
||||||
self.output_line.setText(os.path.join(directory, 'output'))
|
self.output_line.setText(os.path.join(directory, 'output'))
|
||||||
|
|
@ -501,7 +500,6 @@ class MainWindow(QtGui.QWidget, CommandBase):
|
||||||
self.project_dir() or
|
self.project_dir() or
|
||||||
QtCore.QDir.currentPath()))
|
QtCore.QDir.currentPath()))
|
||||||
if directory:
|
if directory:
|
||||||
directory = directory.replace('\\', '\\\\')
|
|
||||||
self.output_line.setText(directory)
|
self.output_line.setText(directory)
|
||||||
self.update_json = True
|
self.update_json = True
|
||||||
|
|
||||||
|
|
@ -513,7 +511,6 @@ class MainWindow(QtGui.QWidget, CommandBase):
|
||||||
setting.file_types)
|
setting.file_types)
|
||||||
if file_path:
|
if file_path:
|
||||||
file_path = file_path.replace(self.project_dir()+os.path.sep, '')
|
file_path = file_path.replace(self.project_dir()+os.path.sep, '')
|
||||||
file_path = file_path.replace('\\', '\\\\')
|
|
||||||
text_obj.setText(file_path)
|
text_obj.setText(file_path)
|
||||||
setting.last_value = file_path
|
setting.last_value = file_path
|
||||||
|
|
||||||
|
|
@ -523,7 +520,6 @@ class MainWindow(QtGui.QWidget, CommandBase):
|
||||||
QtCore.QDir.currentPath()))
|
QtCore.QDir.currentPath()))
|
||||||
if folder:
|
if folder:
|
||||||
folder = folder.replace(self.project_dir()+os.path.sep, '')
|
folder = folder.replace(self.project_dir()+os.path.sep, '')
|
||||||
folder = folder.replace('\\', '\\\\')
|
|
||||||
text_obj.setText(folder)
|
text_obj.setText(folder)
|
||||||
setting.last_value = folder
|
setting.last_value = folder
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue