Deleted Added
sdiff udiff text old ( 11403:e8949ea6961f ) new ( 11923:d2f0605ac2af )
full compact
1# Copyright (c) 2008-2009 The Hewlett-Packard Development Company
2# Copyright (c) 2004-2006 The Regents of The University of Michigan
3# All rights reserved.
4#
5# Redistribution and use in source and binary forms, with or without
6# modification, are permitted provided that the following conditions are
7# met: redistributions of source code must retain the above copyright
8# notice, this list of conditions and the following disclaimer;

--- 181 unchanged lines hidden (view full) ---

190def makeDir(path):
191 """Make a directory if it doesn't exist. If the path does exist,
192 ensure that it is a directory"""
193 if os.path.exists(path):
194 if not os.path.isdir(path):
195 raise AttributeError, "%s exists but is not directory" % path
196 else:
197 os.mkdir(path)