Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 78 for getenv (0.21 sec)

  1. cni/pkg/cmd/root.go

    		KubeconfigMode:     viper.GetInt(constants.KubeconfigMode),
    		KubeCAFile:         viper.GetString(constants.KubeCAFile),
    		SkipTLSVerify:      viper.GetBool(constants.SkipTLSVerify),
    		K8sServiceProtocol: os.Getenv("KUBERNETES_SERVICE_PROTOCOL"),
    		K8sServiceHost:     os.Getenv("KUBERNETES_SERVICE_HOST"),
    		K8sServicePort:     os.Getenv("KUBERNETES_SERVICE_PORT"),
    Go
    - Registered: Wed May 01 22:53:12 GMT 2024
    - Last Modified: Tue Apr 30 22:24:38 GMT 2024
    - 12.5K bytes
    - Viewed (0)
  2. src/main/java/org/codelibs/fess/thumbnail/impl/BaseThumbnailGenerator.java

            }
            if (generatorList != null && !generatorList.isEmpty()) {
                String path = System.getenv("PATH");
                if (path == null) {
                    path = System.getenv("Path");
                }
                if (path == null) {
                    path = System.getenv("path");
                }
                final List<String> pathList = new ArrayList<>();
                pathList.add("/usr/share/fess/bin");
    Java
    - Registered: Mon Apr 29 08:04:11 GMT 2024
    - Last Modified: Thu Feb 22 01:37:57 GMT 2024
    - 11.1K bytes
    - Viewed (0)
  3. misc/ios/go_ios_exec.go

    	devID = getenv("GOIOS_DEV_ID")
    
    	// e.g. Z8B3JBXXXX.org.golang.sample, Z8B3JBXXXX prefix is available at
    	// https://developer.apple.com/membercenter/index.action#accountSummary as Team ID.
    	appID = getenv("GOIOS_APP_ID")
    
    	// e.g. Z8B3JBXXXX, available at
    	// https://developer.apple.com/membercenter/index.action#accountSummary as Team ID.
    	teamID = getenv("GOIOS_TEAM_ID")
    
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Mon Apr 11 16:34:30 GMT 2022
    - 23.4K bytes
    - Viewed (0)
  4. cni/test/install_cni.go

          "cni_bin_dir": "/opt/cni/bin",
          "exclude_namespaces": [ "istio-system" ]
      }
    }
    `
    )
    
    func getEnv(key, fallback string) string {
    	if value, ok := os.LookupEnv(key); ok {
    		return value
    	}
    	return fallback
    }
    
    func setEnv(key, value string, t *testing.T) {
    	t.Helper()
    	err := os.Setenv(key, value)
    	if err != nil {
    		t.Fatalf("Couldn't set environment variable, err: %v", err)
    	}
    }
    
    Go
    - Registered: Wed May 01 22:53:12 GMT 2024
    - Last Modified: Fri Jan 26 20:34:28 GMT 2024
    - 12.5K bytes
    - Viewed (0)
  5. docs/en/docs/advanced/settings.md

    For example you could have a file `main.py` with:
    
    ```Python hl_lines="3"
    import os
    
    name = os.getenv("MY_NAME", "World")
    print(f"Hello {name} from Python")
    ```
    
    !!! tip
        The second argument to <a href="https://docs.python.org/3.8/library/os.html#os.getenv" class="external-link" target="_blank">`os.getenv()`</a> is the default value to return.
    
    Plain Text
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 15.7K bytes
    - Viewed (0)
  6. maven-api-impl/src/test/java/org/apache/maven/internal/impl/standalone/ApiRunner.java

                    Lookup lookup) {
                super(session, repositorySystem, repositories, resolverRepositories, lookup);
                systemProperties = System.getenv().entrySet().stream()
                        .collect(Collectors.toMap(e -> "env." + e.getKey(), e -> e.getValue()));
            }
    
            @Override
    Java
    - Registered: Sun Apr 28 03:35:10 GMT 2024
    - Last Modified: Thu Apr 25 14:13:36 GMT 2024
    - 17.1K bytes
    - Viewed (0)
  7. docs/de/docs/advanced/settings.md

    Sie könnten zum Beispiel eine Datei `main.py` haben mit:
    
    ```Python hl_lines="3"
    import os
    
    name = os.getenv("MY_NAME", "World")
    print(f"Hello {name} from Python")
    ```
    
    !!! tip "Tipp"
        Das zweite Argument für <a href="https://docs.python.org/3.8/library/os.html#os.getenv" class="external-link" target="_blank">`os.getenv()`</a> ist der zurückzugebende Defaultwert.
    
    Plain Text
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Sat Mar 30 20:17:14 GMT 2024
    - 17.8K bytes
    - Viewed (0)
  8. docs/zh/docs/advanced/settings.md

    例如,您可以有一个名为 `main.py` 的文件,其中包含以下内容:
    
    ```Python hl_lines="3"
    import os
    
    name = os.getenv("MY_NAME", "World")
    print(f"Hello {name} from Python")
    ```
    
    !!! tip
        <a href="https://docs.python.org/3.8/library/os.html#os.getenv" class="external-link" target="_blank">`os.getenv()`</a> 的第二个参数是要返回的默认值。
    
        如果没有提供默认值,默认为 `None`,此处我们提供了 `"World"` 作为要使用的默认值。
    
    然后,您可以调用该 Python 程序:
    
    Plain Text
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Fri Mar 22 01:42:11 GMT 2024
    - 13.9K bytes
    - Viewed (0)
  9. docs/em/docs/advanced/settings.md

    🖼 👆 💪 ✔️ 📁 `main.py` ⏮️:
    
    ```Python hl_lines="3"
    import os
    
    name = os.getenv("MY_NAME", "World")
    print(f"Hello {name} from Python")
    ```
    
    !!! tip
        🥈 ❌ <a href="https://docs.python.org/3.8/library/os.html#os.getenv" class="external-link" target="_blank">`os.getenv()`</a> 🔢 💲 📨.
    
        🚥 🚫 🚚, ⚫️ `None` 🔢, 📥 👥 🚚 `"World"` 🔢 💲 ⚙️.
    
    ⤴️ 👆 💪 🤙 👈 🐍 📋:
    
    Plain Text
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Fri Mar 22 01:42:11 GMT 2024
    - 11.4K bytes
    - Viewed (0)
  10. tensorflow/c/experimental/filesystem/plugins/gcs/gcs_filesystem.cc

      // staleness (seconds) if provided.
      const char* block_size_env = std::getenv(kBlockSize);
      if (block_size_env && absl::SimpleAtoi(block_size_env, &value)) {
        block_size = value * 1024 * 1024;
      }
      const char* max_bytes_env = std::getenv(kMaxCacheSize);
      if (max_bytes_env && absl::SimpleAtoi(max_bytes_env, &value)) {
        max_bytes = static_cast<size_t>(value * 1024 * 1024);
    C++
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Wed Aug 23 06:55:53 GMT 2023
    - 46.9K bytes
    - Viewed (0)
Back to top