From fddc0102607a42011c4e63eed58f8269ca4aeb2c Mon Sep 17 00:00:00 2001 From: Joey Payne Date: Thu, 7 Jan 2016 08:03:09 -0700 Subject: [PATCH] Fixed some issues with path loading and Windows. --- command_line.py | 2 -- main.py | 2 +- utils.py | 2 -- 3 files changed, 1 insertion(+), 5 deletions(-) diff --git a/command_line.py b/command_line.py index 694b838..8406572 100644 --- a/command_line.py +++ b/command_line.py @@ -63,8 +63,6 @@ else: def get_file(path): parts = path.split('/') independent_path = utils.path_join(CWD, *parts) - if utils.is_windows() and os.path.isabs(independent_path): - independent_path = u'//?/' + independent_path return independent_path __version__ = "v0.0.0" diff --git a/main.py b/main.py index de3c8d0..c54e022 100644 --- a/main.py +++ b/main.py @@ -34,8 +34,8 @@ class ExistingProjectDialog(QtGui.QDialog): def __init__(self, recent_projects, directory_callback, parent=None): super(ExistingProjectDialog, self).__init__(parent) self.setWindowTitle('Open Project Folder') + self.setWindowIcon(QtGui.QIcon(get_file('files/images/icon.png'))) self.setMinimumWidth(500) - self.parent().menuBar().hide() group_box = QtGui.QGroupBox('Existing Projects') gbox_layout = QtGui.QVBoxLayout() diff --git a/utils.py b/utils.py index 228f8c7..6c1624a 100644 --- a/utils.py +++ b/utils.py @@ -51,8 +51,6 @@ def get_data_path(dir_path): def get_data_file_path(file_path): parts = file_path.split('/') data_path = get_data_path('/'.join(parts[:-1])) - if is_windows() and os.path.isabs(data_path): - data_path = u'//?/' + data_path return path_join(data_path, parts[-1]) def log(*args):