Skip to main content
Version: 0.4.x

Configuration

Environment Variables

DENKFLOW_DATA_DIRECTORY

  • Specifies the directory where Denkflow stores runtime data, license state information, and caches (like the TensorRT engine cache).
  • Default: The location depends on the operating system:
PlatformValueExample
Linux$XDG_CONFIG_HOME or $HOME/.config/home/alice/.config
macOS$HOME/Library/Application Support/Users/Alice/Library/Application Support
Windows{FOLDERID_RoamingAppData}C:/Users/Alice/AppData/Roaming
  • Important: It's crucial to set this to a persistent location, especially when:
    • Running inside Docker containers to avoid losing state across restarts
    • Using OneTimeLicenseSource to preserve the offline license activation
    • Using TensorRT acceleration to avoid rebuilding the cache on every run

Example:

export DENKFLOW_DATA_DIRECTORY=/path/to/persistent/denkflow_data
python run_denkflow.py

Or set it within your Python script:

import os
os.environ['DENKFLOW_DATA_DIRECTORY'] = '/path/to/persistent/denkflow_data'
import denkflow