ONJava.com -- The Independent Source for Enterprise Java
oreilly.comSafari Books Online.Conferences.

advertisement

AddThis Social Bookmark Button
Article:
  Why I Stopped Coding and Why I'd Start Again
Subject:   In the language or in the file-system?
Date:   2007-01-19 01:01:03
From:   peterhickman
Response to: In the language or in the file-system?

You could use fuse for this. Just have a script to handle the /mnt/extlibs mount point and let it take you url as the argument. I can't see this being too difficult. Indeed the /mnt/extlibs could just be installed as part of the library search path. You could then do:


import http/www.google.com/code/widgets as widgets


and when the search got to the /mnt/extlibs it would see the http prefix (or whatever convention you used) and get the code.


Works on Linux and Mac and would probably work for Perl and other languages as well.