[gnue] r9674 - trunk/gnue-appserver/scripts

[email protected]
Newsgroups gmane.comp.cms.gnue.cvs
Message-ID <[email protected]>
Author: reinhard
Date: 2007-06-06 04:10:42 -0500 (Wed, 06 Jun 2007)
New Revision: 9674

Modified:
   trunk/gnue-appserver/scripts/gnue-setupdb
   trunk/gnue-appserver/scripts/gsetupdbcvs
Log:
Better methods to call python from shell script.


Modified: trunk/gnue-appserver/scripts/gnue-setupdb
===================================================================
--- trunk/gnue-appserver/scripts/gnue-setupdb	2007-06-06 08:46:11 UTC (rev 9673)
+++ trunk/gnue-appserver/scripts/gnue-setupdb	2007-06-06 09:10:42 UTC (rev 9674)
@@ -1,6 +1,6 @@
 #!/bin/sh
 
-DATADIR=`echo -e "import gnue.paths\nprint gnue.paths.data" | python`
+DATADIR=`python -c "import gnue.paths;print gnue.paths.data"`
 FILE="$DATADIR/share/gnue/appserver/gnue.gsd"
 
 gnue-schema --connection=gnue --createdb "$FILE"

Modified: trunk/gnue-appserver/scripts/gsetupdbcvs
===================================================================
--- trunk/gnue-appserver/scripts/gsetupdbcvs	2007-06-06 08:46:11 UTC (rev 9673)
+++ trunk/gnue-appserver/scripts/gsetupdbcvs	2007-06-06 09:10:42 UTC (rev 9674)
@@ -1,6 +1,6 @@
 #!/bin/sh
 
-DATADIR=`echo -e "import gnue.paths\nprint gnue.paths.data" | gcvs`
+DATADIR=`gcvs -c "import gnue.paths;print gnue.paths.data"`
 FILE="$DATADIR/share/gnue/appserver/gnue.gsd"
 
 gsscvs --connection=gnue --createdb "$FILE"
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.