File tree Expand file tree Collapse file tree 1 file changed +7
-2
lines changed
Flow.Launcher.Core/Plugin Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change 1
- using System ;
1
+ using System ;
2
2
using System . Diagnostics ;
3
3
using System . IO ;
4
4
using System . Threading ;
@@ -28,6 +28,11 @@ public PythonPlugin(string filename)
28
28
var path = Path . Combine ( Constant . ProgramDirectory , JsonRPC ) ;
29
29
_startInfo . EnvironmentVariables [ "PYTHONPATH" ] = path ;
30
30
31
+ _startInfo . EnvironmentVariables [ "FLOW_VERSION" ] = Constant . Version ;
32
+ _startInfo . EnvironmentVariables [ "FLOW_PROGRAM_DIRECTORY" ] = Constant . ProgramDirectory ;
33
+ _startInfo . EnvironmentVariables [ "FLOW_APPLICATION_DIRECTORY" ] = Constant . ApplicationDirectory ;
34
+
35
+
31
36
//Add -B flag to tell python don't write .py[co] files. Because .pyc contains location infos which will prevent python portable
32
37
_startInfo . ArgumentList . Add ( "-B" ) ;
33
38
}
@@ -57,4 +62,4 @@ public override Task InitAsync(PluginInitContext context)
57
62
return Task . CompletedTask ;
58
63
}
59
64
}
60
- }
65
+ }
You can’t perform that action at this time.
0 commit comments