[Commotion-admin] [mlab-observatory] Modifying environment_bootstrap to overwrite files (with a warning) when... (#69)

Collin Anderson notifications at github.com
Fri Apr 17 11:31:56 EDT 2015


> @@ -24,6 +24,11 @@
>  
>  def setup_environment(environment_type):
>    link_name = 'static/js/observatory/js/paths.js'
> +
> +  if os.path.exists(link_name):
> +    print 'Warning: Replacing existing file: %s' % link_name
> +    os.remove(link_name)

+1 on islink()

---
Reply to this email directly or view it on GitHub:
https://github.com/opentechinstitute/mlab-observatory/pull/69/files#r28604210
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.chambana.net/pipermail/commotion-admin/attachments/20150417/eb8cbf36/attachment.html>


More information about the Commotion-admin mailing list