summaryrefslogtreecommitdiff
path: root/scripts/targetcli
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/targetcli')
-rwxr-xr-xscripts/targetcli4
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/targetcli b/scripts/targetcli
index 7c549e6..b042ad9 100755
--- a/scripts/targetcli
+++ b/scripts/targetcli
@@ -20,7 +20,7 @@ under the License.
from __future__ import print_function
-from os import getuid
+from os import getuid, getenv
from targetcli import UIRoot
from rtslib_fb import RTSLibError
from configshell_fb import ConfigShell, ExecutionError
@@ -75,7 +75,7 @@ def main():
else:
is_root = False
- shell = TargetCLI('~/.targetcli')
+ shell = TargetCLI(getenv("TARGETCLI_HOME", '~/.targetcli'))
try:
root_node = UIRoot(shell, as_root=is_root)