Fixed some issues with path loading and Windows.

This commit is contained in:
Joey Payne 2016-01-07 08:03:09 -07:00
commit fddc010260
3 changed files with 1 additions and 5 deletions

View file

@ -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"

View file

@ -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()

View file

@ -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):