yaml.load() takes an open stream, not a file name
authorW. Trevor King <wking@drexel.edu>
Tue, 29 Jun 2010 21:01:32 +0000 (17:01 -0400)
committerW. Trevor King <wking@drexel.edu>
Tue, 29 Jun 2010 21:01:32 +0000 (17:01 -0400)
sitecore/prof/import.py

index e603b31eaed426f6537220d2e5f617011fff1ece..4848815c17430657574eded213b5ee1baabd5f94 100644 (file)
@@ -100,7 +100,7 @@ Example setup before running:
 
     options,args = p.parse_args(argv[1:])
     prof_file = args[0]
-    profs = yaml.load(prof_file)
+    profs = yaml.load(open(prof_file, 'r'))
 
     s = SiteCoreConnection(options.url, options.verbose)
     s.start()