Skip to content

Commit ac2f052

Browse files
Set env vars to disable telemetry in libs used by some custom nodes.
1 parent fbf68c4 commit ac2f052

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

main.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,11 @@
88
from comfy.cli_args import args
99
from app.logger import setup_logger
1010

11+
if __name__ == "__main__":
12+
#NOTE: These do not do anything on core ComfyUI which should already have no communication with the internet, they are for custom nodes.
13+
os.environ['HF_HUB_DISABLE_TELEMETRY'] = '1'
14+
os.environ['DO_NOT_TRACK'] = '1'
15+
1116

1217
setup_logger(log_level=args.verbose)
1318

0 commit comments

Comments
 (0)