[GRASS-dev] Windows comatibility: python import pwd

Markus Neteler neteler at osgeo.org
Tue Sep 6 05:38:58 PDT 2016


On Tue, Sep 6, 2016 at 2:36 PM, Robert Kuszinger <kuszinger at giscom.hu> wrote:
> Hello,
>
> I've realized that m.printws won't compile on windows from the repository.
...
> I've realized that pwd module is not available on windows. Very well, I
> made a functional workaround and the key part is this:
>
> if os.name <> 'nt':
> import pwd

See
http://stackoverflow.com/a/16529231/452464

for some winpwd trick (I just found it, untested)

Markus


More information about the grass-dev mailing list