forked from qt-creator/qt-creator
Squish: Always use the same function for preparing templates
Change-Id: I90dac33dde4c0c3d39c8e8038371dfbb3403dce3 Reviewed-by: Christian Stenger <christian.stenger@nokia.com>
This commit is contained in:
committed by
Robert Löhning
parent
2aa4b803a6
commit
f521c9f062
@@ -449,3 +449,9 @@ def __getSupportedPlatforms__(text, getAsStrings=False):
|
||||
if getAsStrings:
|
||||
result = QtQuickConstants.getTargetsAsStrings(result)
|
||||
return result, version
|
||||
|
||||
# copy example project (sourceExample is path to project) to temporary directory inside repository
|
||||
def prepareTemplate(sourceExample):
|
||||
templateDir = os.path.abspath(tempDir() + "/template")
|
||||
shutil.copytree(sourceExample, templateDir)
|
||||
return templateDir
|
||||
|
Reference in New Issue
Block a user