We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 39d8c9d commit 7eea607Copy full SHA for 7eea607
lib/grammars/python.coffee
@@ -1,7 +1,12 @@
1
+GrammarUtils = require '../grammar-utils'
2
+
3
exports.Python =
4
'Selection Based':
5
command: 'python'
- args: (context) -> ['-u', '-c', context.getCode()]
6
+ args: (context) ->
7
+ code = context.getCode()
8
+ tmpFile = GrammarUtils.createTempFileWithCode(code)
9
+ return ['-u', tmpFile]
10
11
'File Based':
12
@@ -12,7 +17,10 @@ exports.MagicPython = exports.Python
17
exports.Sage =
13
18
14
19
command: 'sage'
15
- args: (context) -> ['-c', context.getCode()]
20
21
22
23
+ return [tmpFile]
16
24
25
26
0 commit comments