Browse files

Change __main__.__file__ to just __file__, now ipython-http knows whe…

…re to get html and js files
  • Loading branch information...
1 parent 516ff28 commit 9a75ab34e5f111b742dd984de54c6251c2dae3d3 @jamesgao committed Oct 22, 2010
Showing with 1 addition and 2 deletions.
  1. +1 −2 IPython/frontend/html/
@@ -9,14 +9,13 @@
import Queue
import threading
import mimetypes
-import __main__
from string import Template
from SocketServer import ThreadingMixIn
from BaseHTTPServer import HTTPServer, BaseHTTPRequestHandler
client_death = 300 # seconds without heartbeat that client considered dead
#Base path to serve js and css files from
-basepath = os.path.split(__main__.__file__)[0]+"/"
+basepath = os.path.split(__file__)[0]+"/"
class CometManager(object):
"""Tracks msg_id, client get requests for the Comet design pattern"""

0 comments on commit 9a75ab3

Please sign in to comment.