[Biojava-dev] default AtomCache constructor
Andreas Prlic
andreas at sdsc.edu
Tue Aug 30 05:26:11 UTC 2011
yea, that makes more sense like you propose..
A
On Mon, Aug 29, 2011 at 7:03 PM, Spencer Bliven <sbliven at ucsd.edu> wrote:
> I've noticed a lot of hard-coded paths in the structure module from creating
> AtomCaches. For instance, very common in main() functions:
>
> AtomCache cache = new AtomCache("/tmp",true);
>
> This is not cross-platform compatible. I believe the proper way of doing
> this is
>
> AtomCache cache = new AtomCache(new UserConfiguration());
>
> which chooses the save location intelligently (java.io.tmpdir or PDB_DIR
> system properties). Would anyone object if I made this the default AtomCache
> constructor and removed all the existing hard paths?
>
> -Spencer
> _______________________________________________
> biojava-dev mailing list
> biojava-dev at lists.open-bio.org
> http://lists.open-bio.org/mailman/listinfo/biojava-dev
>
More information about the biojava-dev
mailing list