Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 159 for getenv (0.19 sec)

  1. src/main/java/org/codelibs/fess/util/ResourceUtil.java

            final String appType = System.getenv(FESS_APP_TYPE);
            if (StringUtil.isNotBlank(appType)) {
                return appType;
            }
            return StringUtil.EMPTY;
        }
    
        public static OptionalEntity<String> getOverrideConfPath() {
            if (FESS_APP_DOCKER.equalsIgnoreCase(getAppType())) {
                final String confPath = System.getenv(FESS_OVERRIDE_CONF_PATH);
    Java
    - Registered: Mon Apr 29 08:04:11 GMT 2024
    - Last Modified: Thu Feb 22 01:37:57 GMT 2024
    - 7.8K bytes
    - Viewed (0)
  2. 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)
  3. 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)
  4. src/main/java/org/codelibs/fess/app/web/admin/systeminfo/AdminSysteminfoAction.java

        }
    
        public static List<Map<String, String>> getEnvItems() {
            final List<Map<String, String>> itemList = new ArrayList<>();
            for (final Map.Entry<String, String> entry : System.getenv().entrySet()) {
                itemList.add(createItem(entry.getKey(), entry.getValue()));
            }
            return itemList;
        }
    
        public static List<Map<String, String>> getPropItems() {
    Java
    - Registered: Mon Apr 29 08:04:11 GMT 2024
    - Last Modified: Thu Feb 22 01:37:57 GMT 2024
    - 7.5K bytes
    - Viewed (0)
  5. 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)
  6. src/main/java/org/codelibs/fess/exec/ThumbnailGenerator.java

                    System.getProperties().entrySet().stream().forEach(e -> logger.debug("Property: {}={}", e.getKey(), e.getValue()));
                    System.getenv().entrySet().forEach(e -> logger.debug("Env: {}={}", e.getKey(), e.getValue()));
                    logger.debug("Option: {}", options);
                } catch (final Exception e) {
                    // ignore
                }
    Java
    - Registered: Mon Apr 29 08:04:11 GMT 2024
    - Last Modified: Thu Feb 22 01:37:57 GMT 2024
    - 8.2K bytes
    - Viewed (0)
  7. build-logic/jvm/src/main/kotlin/gradlebuild/propagated-env-variables.kt

        }
    }
    
    
    private
    fun makePropagatedEnvironment(): Map<String, String?> {
        val result = HashMap<String, String?>()
        for (key in propagatedEnvironmentVariables) {
            val value = System.getenv(key)
            if (value != null) {
                result[key] = value
            }
        }
        return result
    Plain Text
    - Registered: Wed Feb 28 11:36:09 GMT 2024
    - Last Modified: Tue Apr 18 01:52:16 GMT 2023
    - 3.7K bytes
    - Viewed (0)
  8. src/main/java/org/codelibs/fess/helper/ActivityHelper.java

            logger = LogManager.getLogger(loggerName);
            final String logFormat = ComponentUtil.getFessConfig().getAppAuditLogFormat();
            if (StringUtil.isBlank(logFormat)) {
                useEcsFormat = "docker".equals(System.getenv("FESS_APP_TYPE"));
            } else if ("ecs".equals(logFormat)) {
                useEcsFormat = true;
            }
        }
    
        public void login(final OptionalThing<FessUserBean> user) {
    Java
    - Registered: Mon Apr 29 08:04:11 GMT 2024
    - Last Modified: Thu Feb 22 01:37:57 GMT 2024
    - 7.7K bytes
    - Viewed (0)
  9. src/main/java/org/codelibs/fess/exec/SuggestCreator.java

                    System.getProperties().entrySet().stream().forEach(e -> logger.debug("Property: {}={}", e.getKey(), e.getValue()));
                    System.getenv().entrySet().forEach(e -> logger.debug("Env: {}={}", e.getKey(), e.getValue()));
                    logger.debug("Option: {}", options);
                } catch (final Exception e) {
                    // ignore
                }
    Java
    - Registered: Mon Apr 29 08:04:11 GMT 2024
    - Last Modified: Thu Feb 22 01:37:57 GMT 2024
    - 10K bytes
    - Viewed (0)
  10. misc/go_android_exec/main.go

    		fmt.Fprintf(os.Stderr, "adb %s\n%s", strings.Join(args, " "), out)
    		return err
    	}
    	return nil
    }
    
    func adbCmd(args ...string) *exec.Cmd {
    	if flags := os.Getenv("GOANDROID_ADB_FLAGS"); flags != "" {
    		args = append(strings.Split(flags, " "), args...)
    	}
    	return exec.Command("adb", args...)
    }
    
    const (
    	deviceRoot   = "/data/local/tmp/go_android_exec"
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Mon Aug 21 17:46:57 GMT 2023
    - 15.3K bytes
    - Viewed (0)
Back to top