From: W. Trevor King Date: Tue, 29 Jun 2010 21:01:32 +0000 (-0400) Subject: yaml.load() takes an open stream, not a file name X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=e8fb4a921486225cb284d3f57a6e1b93a8162543;p=sitecorepy.git yaml.load() takes an open stream, not a file name --- diff --git a/sitecore/prof/import.py b/sitecore/prof/import.py index e603b31..4848815 100644 --- a/sitecore/prof/import.py +++ b/sitecore/prof/import.py @@ -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()