From ebf64b060e06c1ba311f76d0f99c0117e9313d8e Mon Sep 17 00:00:00 2001 From: Benjamin Dauvergne Date: Sat, 21 Sep 2013 01:40:03 +0200 Subject: [PATCH] deploy: do not try to open directories --- wcsinst/wcsinstd/deploy.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/wcsinst/wcsinstd/deploy.py b/wcsinst/wcsinstd/deploy.py index 6f690c7..4cacd91 100644 --- a/wcsinst/wcsinstd/deploy.py +++ b/wcsinst/wcsinstd/deploy.py @@ -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')