forked from qt-creator/qt-creator
Change-Id: Ic499b3c36d37f9789276f60a41642ffc7ee816d1 Reviewed-on: http://codereview.qt.nokia.com/3047 Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Bill King <bill.king@nokia.com>
25 lines
716 B
Python
25 lines
716 B
Python
import platform;
|
|
import shutil;
|
|
import os;
|
|
import glob;
|
|
|
|
SDKPath = ''
|
|
SettingsPath = ''
|
|
testSettings.logScreenshotOnFail = True
|
|
|
|
source(findFile("scripts", "utils.py"))
|
|
source(findFile("scripts", "mainwin.py"))
|
|
|
|
if platform.system() in ('Windows', 'Microsoft'):
|
|
SDKPath = "C:/QtSDK/src"
|
|
cwd = os.getcwd() # current dir is directory holding qtcreator.py
|
|
cwd+="/../../settings/windows"
|
|
cwd = os.path.abspath(cwd)
|
|
SettingsPath = " -settingspath %s" % cwd
|
|
else:
|
|
SDKPath = os.path.expanduser("~/QtSDK/src")
|
|
cwd = os.getcwd() # current dir is directory holding qtcreator.py
|
|
cwd+="/../../settings/unix"
|
|
cwd = os.path.abspath(cwd)
|
|
SettingsPath = " -settingspath %s" % cwd
|