pw_doctor: Update CIPD path

Change-Id: I4d27da1fb1e7d781ed98655e31f0fa61e1148836
Reviewed-on: https://pigweed-review.googlesource.com/c/pigweed/pigweed/+/14042
Reviewed-by: Keir Mierle <keir@google.com>
Commit-Queue: Rob Mohr <mohrr@google.com>
diff --git a/pw_doctor/py/pw_doctor/doctor.py b/pw_doctor/py/pw_doctor/doctor.py
index c1a994f..74a4c87 100755
--- a/pw_doctor/py/pw_doctor/doctor.py
+++ b/pw_doctor/py/pw_doctor/doctor.py
@@ -253,7 +253,11 @@
     except KeyError:
         return  # This case is handled elsewhere.
 
-    versions_path = root.joinpath('.cipd', 'pigweed', '.versions')
+    if 'PW_PIGWEED_CIPD_INSTALL_DIR' not in os.environ:
+        ctx.error('PW_PIGWEED_CIPD_INSTALL_DIR not set')
+    cipd_dir = pathlib.Path(os.environ['PW_PIGWEED_CIPD_INSTALL_DIR'])
+
+    versions_path = cipd_dir / '.versions'
     # Deliberately not checking luci.json--it's not required to be up-to-date.
     json_path = root.joinpath('pw_env_setup', 'py', 'pw_env_setup',
                               'cipd_setup', 'pigweed.json')