![]() |
Available news archives:
comp.lang.tcl
-
comp.lang.python
-
comp.security.firewalls
-
sci.crypt -
comp.lang.php -
comp.lang.javascript
|
|
comp.lang.python archivecritique this little script, if you like
From: John Salerno <johnjsal@NOSPAMgmail.com>
Date: Mon May 01 2006 - 01:33:52 CEST
# Create new subdomain directory (with subdirectories) in my 1and1 folder
import os
subdirs = [r'\cgi-bin', r'\images', r'\styles']
#if len(sys.argv) == 1:
try:
path = r'C:\Documents and Settings\John Salerno\My Documents\My
os.mkdir(path)
Just a simple script I wrote as an experiment, and it works nicely
1. Like my other post, I'm wondering if it's okay to handle the ending
2. Between the if block or the try block, which is more Pythonic? The
|