dabo Commit
Revision 5660
Date: 2010-02-07 13:16:09 -0800 (Sun, 07 Feb 2010)
Author: Ed
Trac: http://trac.dabodev.com/changeset/5660

Changed:
U   trunk/dabo/__init__.py

Log:
Added a bit of verbosity to quickStart(). Also changed it so that it requires 
an app name.


Diff:
Modified: trunk/dabo/__init__.py
===================================================================
--- trunk/dabo/__init__.py      2010-02-07 15:02:03 UTC (rev 5659)
+++ trunk/dabo/__init__.py      2010-02-07 21:16:09 UTC (rev 5660)
@@ -222,10 +222,14 @@
        directory, or the current one if none is specified.
        """
        currLoc = os.getcwd()
-       if homedir is not None:
-               if not os.path.exists(homedir):
-                       os.makedirs(homedir)
-               os.chdir(homedir)
+       if homedir is None:
+               homedir = raw_input("Enter the name for your application: ")
+       if not homedir:
+               return
+
+       if not os.path.exists(homedir):
+               os.makedirs(homedir)
+       os.chdir(homedir)
        makeDaboDirectories()
        open("main.py", "w").write("""#!/usr/bin/env python
 # -*- coding: utf-8 -*-
@@ -264,3 +268,4 @@
                open(fname, "w").write(txt)
        os.chmod("main.py", 0744)
        os.chdir(currLoc)
+       print "Application '%s' has been created for you" % homedir



_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-dev
Searchable Archives: http://leafe.com/archives/search/dabo-dev
This message: 
http://leafe.com/archives/byMID/[email protected]

Reply via email to