aboutsummaryrefslogtreecommitdiffstats
path: root/share/qtcreator/templates/wizards/files/python/wizard.json
diff options
context:
space:
mode:
Diffstat (limited to 'share/qtcreator/templates/wizards/files/python/wizard.json')
-rw-r--r--share/qtcreator/templates/wizards/files/python/wizard.json4
1 files changed, 3 insertions, 1 deletions
diff --git a/share/qtcreator/templates/wizards/files/python/wizard.json b/share/qtcreator/templates/wizards/files/python/wizard.json
index f3bff037b5..a01e32bf4a 100644
--- a/share/qtcreator/templates/wizards/files/python/wizard.json
+++ b/share/qtcreator/templates/wizards/files/python/wizard.json
@@ -9,6 +9,8 @@
"icon": "icon.png",
"enabled": "%{JS: value('Plugins').indexOf('Python') >= 0}",
+ "options": { "key": "DefaultSuffix", "value": "%{JS: Util.preferredSuffix('text/x-python')}" },
+
"pages" :
[
{
@@ -29,7 +31,7 @@
"data":
{
"source": "file.py",
- "target": "%{JS: Util.fileName(value('TargetPath'), Util.preferredSuffix('text/x-python'))}",
+ "target": "%{JS: Util.fileName(value('TargetPath'), value('DefaultSuffix'))}",
"openInEditor": true
}
}