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

mtlynch notifications at github.com
Fri Apr 17 13:34:09 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)

Fair enough. Fixed.

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


More information about the Commotion-admin mailing list