Hi, I opted for
> This works on all platforms: > os.path.expanduser("~/.pymol/myplugindata") > And it is working here: https://github.com/pslacerda/pymol-labimm/blob/f8d4906f89c0cae3f6c5b504cc78a9bbf70565d1/pymol_labimm/prefs.py#L40 Em seg., 15 de jun. de 2020 às 05:08, Thomas Holder < thomas.hol...@schrodinger.com> escreveu: > Hi Pedro, > > There is no designated infrastructure for this. Other plugins typically > create their own directory in the user's home folder, like > "~/.myplugindata". You could also create it inside the "~/.pymol" directory > (like "~/.pymol/myplugindata"). > > This works on all platforms: > os.path.expanduser("~/.pymol/myplugindata") > > On Windows, you could also put it inside the %APPDATA% directory: > os.path.join(os.environ['APPDATA'], 'pymol', 'myplugindata') > > > Let me know how you decide or if you have other ideas! > > Cheers, > Thomas > > > > On Jun 9, 2020, at 10:20 PM, Pedro Lacerda <pslace...@gmail.com> wrote: > > > > Hi PyMOL users and developers, > > > > I have a plugin that needs to download data periodically. Where should I > download to? > > > > By the way, I managed to get a plugin into a python package. > > > > > https://github.com/pslacerda/pymol-labimm/blob/master/scripts/pymol_labimm.py > > > > -- > > Pedro Sousa Lacerda > > > > Laboratório de Bioinformática e Modelagem Molecular > > Faculdade de Farmácia / UFBA > > > > @pslacerda > > +55 71 9 9981-1856 > > http://lattes.cnpq.br/8338596525330907 > > _______________________________________________ > > PyMOL-users mailing list > > Archives: http://www.mail-archive.com/pymol-users@lists.sourceforge.net > > Unsubscribe: > https://sourceforge.net/projects/pymol/lists/pymol-users/unsubscribe > > -- > Thomas Holder > PyMOL Principal Developer > Schrödinger, Inc. > > -- Pedro Sousa Lacerda Laboratório de Bioinformática e Modelagem Molecular / UFBA Mestrando em Ciências Farmácias / UEFS @pslacerda +55 71 9 9981-1856 http://lattes.cnpq.br/8338596525330907
_______________________________________________ PyMOL-users mailing list Archives: http://www.mail-archive.com/pymol-users@lists.sourceforge.net Unsubscribe: https://sourceforge.net/projects/pymol/lists/pymol-users/unsubscribe