summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xbin/hostinfo2
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/hostinfo b/bin/hostinfo
index 43fd5b4..88fe388 100755
--- a/bin/hostinfo
+++ b/bin/hostinfo
@@ -89,7 +89,7 @@ def print_help(self_name):
def main():
self_name = sys.argv.pop(0)
basepath = '/usr/local/share/hostinfo'
- if 'HOSTINFO_PATH' in os.environ:
+ if 'HOSTINFO_PATH' in os.environ and os.environ['HOSTINFO_PATH'] != '':
basepath = os.environ['HOSTINFO_PATH']
file = oneline = keys = verbose = nospaces = help = \