deploy: do not try to open directories
This commit is contained in:
parent
21eae031e4
commit
ebf64b060e
|
@ -61,7 +61,8 @@ class DeployInstance(object):
|
|||
data = z.read(f)
|
||||
if not os.path.exists(os.path.dirname(path)):
|
||||
os.mkdir(os.path.dirname(path))
|
||||
open(path, 'w').write(data)
|
||||
if not f.endswith('/'):
|
||||
open(path, 'w').write(data)
|
||||
z.close()
|
||||
|
||||
config_file = os.path.join(self.collectivity_install_dir, 'config.pck')
|
||||
|
|
Reference in New Issue