[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[sshproxy-dev] Changes to sshproxy/SSHproxy/client/console.py
From: |
David Guerizec |
Subject: |
[sshproxy-dev] Changes to sshproxy/SSHproxy/client/console.py |
Date: |
Wed, 03 Aug 2005 09:40:37 -0400 |
Index: sshproxy/SSHproxy/client/console.py
diff -u sshproxy/SSHproxy/client/console.py:1.2
sshproxy/SSHproxy/client/console.py:1.3
--- sshproxy/SSHproxy/client/console.py:1.2 Tue Aug 2 13:25:45 2005
+++ sshproxy/SSHproxy/client/console.py Wed Aug 3 13:40:37 2005
@@ -58,7 +58,10 @@
self.lcwd = os.getcwd()
self.cwd = ''
self.intro = "SFTP Console"
- self.lhostname = os.environ['HOSTNAME']
+ if os.environ.has_key('HOSTNAME'):
+ self.lhostname = os.environ['HOSTNAME']
+ else:
+ self.lhostname = 'localhost'
self.hostname = hostname
self.set_prompt()
self.history_file = os.path.join(os.environ['HOME'],
'.sshproxy/history')