File tree Expand file tree Collapse file tree 1 file changed +7
-16
lines changed
csharp/runner/SnippetRunner Expand file tree Collapse file tree 1 file changed +7
-16
lines changed Original file line number Diff line number Diff line change @@ -220,6 +220,13 @@ private static bool IsDirectory(string path)
220
220
+ Environment . OSVersion . Platform ) ;
221
221
}
222
222
223
+ Console . Error . WriteLine ( ) ;
224
+ Console . Error . WriteLine ( "---------------------------------" ) ;
225
+ Console . Error . WriteLine ( "PLATFORM ID: " + PlatformID . MacOSX ) ;
226
+ Console . Error . WriteLine ( "DEFAULT SUPPORT PATH: " + defaultSupportPath ) ;
227
+ Console . Error . WriteLine ( "---------------------------------" ) ;
228
+ Console . Error . WriteLine ( ) ;
229
+
223
230
// check for senzing system properties
224
231
string ? installPath = Environment . GetEnvironmentVariable (
225
232
"SENZING_DIR" ) ;
@@ -311,22 +318,6 @@ private static bool IsDirectory(string path)
311
318
}
312
319
else
313
320
{
314
- switch ( Environment . OSVersion . Platform )
315
- {
316
- case PlatformID . Win32NT :
317
- defaultSupportPath = Path . Combine ( installDir . FullName , "data" ) ;
318
- break ;
319
- case PlatformID . MacOSX :
320
- defaultSupportPath = Path . Combine ( installDir . FullName , "data" ) ;
321
- break ;
322
- case PlatformID . Unix :
323
- break ;
324
- default :
325
- throw new NotSupportedException (
326
- "Unsupported Operating System: "
327
- + Environment . OSVersion . Platform ) ;
328
- }
329
-
330
321
// no explicit path, try the default support path
331
322
supportDir = new DirectoryInfo ( defaultSupportPath ) ;
332
323
}
You can’t perform that action at this time.
0 commit comments