[Yt-svn] commit/yt: MatthewTurk: Adding a warning if ExtJS isn't installed.

Bitbucket commits-noreply at bitbucket.org
Sun Apr 3 06:23:37 PDT 2011


1 new changeset in yt:

http://bitbucket.org/yt_analysis/yt/changeset/046ad13acdc2/
changeset:   r4064:046ad13acdc2
branch:      yt
user:        MatthewTurk
date:        2011-04-03 15:22:47
summary:     Adding a warning if ExtJS isn't installed.
affected #:  1 file (450 bytes)

--- a/yt/utilities/command_line.py	Sat Apr 02 23:48:24 2011 -0400
+++ b/yt/utilities/command_line.py	Sun Apr 03 09:22:47 2011 -0400
@@ -935,6 +935,14 @@
             opts.port = sock.getsockname()[-1]
             del sock
         base_extjs_path = os.path.join(os.environ["YT_DEST"], "src")
+        if not os.path.isfile(os.path.join(base_extjs_path, "ext-resources", "ext-all.js")):
+            print
+            print "*** You are missing the ExtJS support files. You  ***"
+            print "*** You can get these by either rerunning the     ***"
+            print "*** install script installing, or downloading     ***"
+            print "*** them manually.                                ***"
+            print
+            sys.exit(1)
         from yt.config import ytcfg;ytcfg["yt","__withinreason"]="True"
         import yt.gui.reason.bottle as bottle
         from yt.gui.reason.extdirect_repl import ExtDirectREPL
@@ -945,6 +953,7 @@
         uuid_serve_functions(open_browser=opts.open_browser,
                     port=int(opts.port))
 
+
 def run_main():
     for co in ["--parallel", "--paste"]:
         if co in sys.argv: del sys.argv[sys.argv.index(co)]

Repository URL: https://bitbucket.org/yt_analysis/yt/

--

This is a commit notification from bitbucket.org. You are receiving
this because you have the service enabled, addressing the recipient of
this email.



More information about the yt-svn mailing list