Nothing executes in code
<blockquote>
  <p><strong>Possible Duplicate:</strong><br>
  <a href="http://stackoverflow.com/questions/3391518/python-application-does-nothing">Python Application does nothing</a>  </p>
</blockquote>



<pre><code>#Dash Shell
import os
import datetime

class LocalComputer:
    pass

def InitInformation():
    Home = LocalComputer()
    #Acquires user information
    if (os.name == "nt"):
        Home.ComputerName = os.getenv("COMPUTERNAME")
        Home.Username = os.getenv("USERNAME")
        Home.Homedir = os.getenv("HOMEPATH")
    else:
        Home.ComputerName = os.getenv("HOSTNAME")
        Home.Username = os.getenv("USER")
        Home.Homedir = os.getenv("HOME")
    return Home

def MainShellLoop():
    print ("--- Dash Shell ---")
    Home = InitInformation()
    userinput = None
    currentdir = Home.Homedir
    while (userinput != "exit"):
        rightnow = datetime.datetime.now()
        try:
            userinput = input(str(Home.ComputerName) + "\\" + str(Home.Username) + ":" + str(rightnow.month) + "/" + str(rightnow.day) + "/" + str(rightnow.year) + "@" + str(currentdir))
        except:
            print("Invalid Command specified, please try again")

MainShellLoop()
</code></pre>

<p>The <code>input()</code> is supposed to execute and it stopped working after changing something I dont remember</p>

<p>It's coded under Python 3.1.2 with Windows 7, I know the Unix Hostname global variable is wrong</p>

<p>I know <code>userinput</code> does nothing, I want to get this part working before I continue on</p>

<p>Thanks</p>

<p>It outputs nothing</p>
