Browse Source

Load initial project with absolute path, fixes #115

tags/1.9.4
falkTX 11 years ago
parent
commit
3568e70748
1 changed files with 3 additions and 3 deletions
  1. +3
    -3
      source/carla_host.py

+ 3
- 3
source/carla_host.py View File

@@ -25,11 +25,11 @@ from carla_config import *
# Imports (Global)

if config_UseQt5:
from PyQt5.QtCore import qCritical, QModelIndex, QTimer
from PyQt5.QtCore import qCritical, QFileInfo, QModelIndex, QTimer
from PyQt5.QtGui import QPalette
from PyQt5.QtWidgets import QApplication, QFileSystemModel, QListWidgetItem, QMainWindow
else:
from PyQt4.QtCore import qCritical, QModelIndex, QTimer
from PyQt4.QtCore import qCritical, QFileInfo, QModelIndex, QTimer
from PyQt4.QtGui import QApplication, QFileSystemModel, QListWidgetItem, QMainWindow, QPalette

# ------------------------------------------------------------------------------------------------------------
@@ -397,7 +397,7 @@ class HostWindow(QMainWindow):
self.loadProjectNow()

def loadProjectLater(self, filename):
self.fProjectFilename = filename
self.fProjectFilename = QFileInfo(filename).absoluteFilePath()
self.setProperWindowTitle()
QTimer.singleShot(0, self.slot_loadProjectNow)



Loading…
Cancel
Save