Fixed osmodumpdoc to work with the refactored importing

This commit is contained in:
Kat 2013-04-06 11:11:49 +02:00
parent 0270be43b9
commit cd564fcebc
1 changed files with 2 additions and 6 deletions

8
osmopy/osmodumpdoc.py Executable file → Normal file
View File

@ -80,12 +80,8 @@ if __name__ == '__main__':
if args.w:
workdir = args.w
osmoappdesc = None
try:
osmoappdesc = osmoutil.importappconf(confpath, "osmoappdesc")
except ImportError as e:
print >> sys.stderr, "osmoappdesc not found, set searchpath with -p"
sys.exit(1)
osmoappdesc = osmoutil.importappconf_or_quit(
confpath, "osmoappdesc", args.p)
os.chdir(workdir)
num_fails, num_sucs = dump_configs(