Skip to content

Commit dac44d0

Browse files
committed
Set NODE_OPTIONS env variable to suppress deprecation warnings of nodejs
1 parent 76cab9e commit dac44d0

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

Dynamic Folder/Bitwarden/Bitwarden (Python).rdfx

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,13 @@ import json
9797
import subprocess
9898
import os
9999

100+
# Disable deprecation warnings for node version of bw client
101+
os.environ["NODE_OPTIONS"] = (
102+
" --no-deprecation"
103+
if os.getenv("NODE_OPTIONS", "") == ""
104+
else os.getenv("NODE_OPTIONS") + " --no-deprecation"
105+
)
106+
100107
is_unix = _platform.lower().startswith("darwin") or _platform.lower().startswith(
101108
"linux"
102109
)

0 commit comments

Comments
 (0)