static

in src/main/java/com/microsoft/appcenter/appium/DriverHelper.java [66:78]


    static {
        workspace = System.getenv("SCREENSHOT_PATH");
        if (!pathIsWritable(workspace)) {
            workspace = System.getenv("PWD");
            if (!pathIsWritable(workspace)) {
                try {
                    workspace = Files.createTempDirectory("appium").toAbsolutePath().toString();
                } catch (IOException e) {
                    throw new RuntimeException("Could not create writable folder for screenshots", e);
                }
            }
        }
    }