Skip to content

Commit 2c9ddf9

Browse files
committed
Revert switch to pathlib, to maintain Python2 support
1 parent 10db259 commit 2c9ddf9

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

config/kube_config.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@
1919
import json
2020
import logging
2121
import os
22-
import pathlib
2322
import platform
2423
import subprocess
2524
import tempfile
@@ -46,7 +45,7 @@
4645
pass
4746

4847
EXPIRY_SKEW_PREVENTION_DELAY = datetime.timedelta(minutes=5)
49-
KUBE_CONFIG_DEFAULT_LOCATION = os.environ.get('KUBECONFIG', f'{pathlib.Path.home()}/.kube/config')
48+
KUBE_CONFIG_DEFAULT_LOCATION = os.environ.get('KUBECONFIG', '~/.kube/config')
5049
ENV_KUBECONFIG_PATH_SEPARATOR = ';' if platform.system() == 'Windows' else ':'
5150
_temp_files = {}
5251

0 commit comments

Comments
 (0)