Fixed some issues with path loading and Windows.
This commit is contained in:
parent
66431d2d14
commit
fddc010260
3 changed files with 1 additions and 5 deletions
|
|
@ -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"
|
||||
|
|
|
|||
2
main.py
2
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()
|
||||
|
|
|
|||
2
utils.py
2
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):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue