Changeset 502 in tailor
- Timestamp:
- 08/05/05 11:59:12 (8 years ago)
- Hash name:
- 20050805095912-97f81-9483a9e9fea76f643cdb558b1236d72a8be9399d
- File:
-
- 1 edited
-
vcpx/tailor.py (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
vcpx/tailor.py
r496 r502 250 250 """ 251 251 252 import sys 252 253 from os import getcwd 253 254 … … 279 280 defaults[k.replace('_', '-')] = str(v) 280 281 281 if options.configfile: 282 if options.configfile or (len(sys.argv)==2 and len(args)==1): 283 # Either we have a --configfile, or there are no options 284 # and a single argument (to support shebang style scripts) 285 286 if not options.configfile: 287 options.configfile = sys.argv[1] 288 args = None 289 282 290 config = Config(open(options.configfile), defaults) 283 291
Note: See TracChangeset
for help on using the changeset viewer.
