converting from shell script to python
Shao Zhang
shao at cia.com.au
Tue Apr 1 01:11:42 EST 2003
Hi,
I need to convert a very simple shell script to python in order get it
run on both windows and unix. However I cannot quite work out a simple
way of doing it without using lists/array/join etc...
#!/bin/sh
ROOTDIR=/usr/lib
CLASSPATH="$ROOTDIR/a/a.jar:$ROOTDIR/b/b.jar:$ROOTDIR/c/c.jar"
java -classpath $CLASSPATH foo
What is the most python way of doing the above? Will perl be a better
choice for things like this?
Thanks.
Shao.
More information about the Python-list
mailing list