[Jifty-commit] r3047 - jifty/trunk/lib/Jifty/Script

jifty-commit at lists.jifty.org jifty-commit at lists.jifty.org
Thu Mar 22 21:18:06 EDT 2007


Author: nelhage
Date: Thu Mar 22 21:18:06 2007
New Revision: 3047

Modified:
   jifty/trunk/lib/Jifty/Script/Schema.pm

Log:
We load the config on demand now, so it always exists. Test for
classloader existence, instead of config existence, to tell whether or
not we need to Jifty->new.


Modified: jifty/trunk/lib/Jifty/Script/Schema.pm
==============================================================================
--- jifty/trunk/lib/Jifty/Script/Schema.pm	(original)
+++ jifty/trunk/lib/Jifty/Script/Schema.pm	Thu Mar 22 21:18:06 2007
@@ -89,7 +89,7 @@
     # Import Jifty
     Jifty::Util->require("Jifty");
     Jifty::Util->require("Jifty::Model::Metadata");
-    Jifty->new( no_handle        => 1, logger_component => 'SchemaTool',) unless (Jifty->config);
+    Jifty->new( no_handle        => 1, logger_component => 'SchemaTool',) unless Jifty->class_loader;
 }
 
 =head2 print_help


More information about the Jifty-commit mailing list