File tree Expand file tree Collapse file tree 1 file changed +2
-16
lines changed Expand file tree Collapse file tree 1 file changed +2
-16
lines changed Original file line number Diff line number Diff line change @@ -14,22 +14,8 @@ public static class ModuleInitializer
14
14
public static void Initialize ( )
15
15
{
16
16
Logger . WriteInfo = s => Trace . WriteLine ( s ) ;
17
- var nativeBinaries = Path . Combine ( AssemblyLocation . CurrentDirectory ( ) , "NativeBinaries" , GetProcessorArchitecture ( ) ) ;
18
- var existingPath = Environment . GetEnvironmentVariable ( "PATH" ) ;
19
- if ( existingPath . Contains ( nativeBinaries ) )
20
- {
21
- return ;
22
- }
23
- var newPath = string . Concat ( nativeBinaries , Path . PathSeparator , existingPath ) ;
24
- Environment . SetEnvironmentVariable ( "PATH" , newPath ) ;
17
+ Logger . WriteError = s => Trace . WriteLine ( s ) ;
18
+ Logger . WriteWarning = s => Trace . WriteLine ( s ) ;
25
19
}
26
20
27
- static string GetProcessorArchitecture ( )
28
- {
29
- if ( Environment . Is64BitProcess )
30
- {
31
- return "amd64" ;
32
- }
33
- return "x86" ;
34
- }
35
21
}
You can’t perform that action at this time.
0 commit comments