758 try: |
758 try: |
759 # Install the files |
759 # Install the files |
760 # make the install directories |
760 # make the install directories |
761 for key in cfg: |
761 for key in cfg: |
762 if cfg[key] and not os.path.isdir(cfg[key]): |
762 if cfg[key] and not os.path.isdir(cfg[key]): |
763 os.makedirs(cfg[key]) |
763 try: |
|
764 os.makedirs(cfg[key]) |
|
765 except OSError: |
|
766 if key != "apidir": |
|
767 raise |
764 |
768 |
765 # copy the eric config file |
769 # copy the eric config file |
766 if distDir: |
770 if distDir: |
767 shutilCopy(configName, cfg["mdir"]) |
771 shutilCopy(configName, cfg["mdir"]) |
768 if os.path.exists(configName + "c"): |
772 if os.path.exists(configName + "c"): |