We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 84e8a00 commit a4ce62bCopy full SHA for a4ce62b
src/serious_python_linux/lib/serious_python_linux.dart
@@ -30,11 +30,13 @@ class SeriousPythonLinux extends SeriousPythonPlatform {
30
final Map<String, dynamic> arguments = {
31
'exePath': Platform.resolvedExecutable,
32
'appPath': appPath,
33
- 'script': script,
34
'modulePaths': modulePaths,
35
'environmentVariables': environmentVariables,
36
'sync': sync
37
};
+ if (script != null) {
38
+ arguments['script'] = script;
39
+ }
40
return await methodChannel.invokeMethod<String>('runPython', arguments);
41
}
42
0 commit comments