nikademus79 / psutil

Automatically exported from code.google.com/p/psutil
Other
0 stars 0 forks source link

(OSX) add support for Process.getcwd() #222

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
This is similar to issue 154.
Process.getcwd() is supported all platforms except OSX.
I'm not sure whether the implementation might be similar to BSD (r1164).
I'm going to assign this to Jeremy and I'll try to take a look at this in the 
next days myself.

Original issue reported on code.google.com by g.rodola on 14 Oct 2011 at 9:32

GoogleCodeExporter commented 8 years ago

Original comment by g.rodola on 17 Oct 2011 at 10:38

GoogleCodeExporter commented 8 years ago
Stack overflow makes the suggestion of using lsof:

http://stackoverflow.com/questions/1521190/get-the-current-working-directory-of-
process-with-a-pid-programmatically-on-os-x

Maybe we can use a current osx open file implementation to do this (if one 
exists?)

Original comment by david.da...@gmail.com on 25 Apr 2012 at 4:50

GoogleCodeExporter commented 8 years ago
Is lsof installed by default on OSX?

Original comment by g.rodola on 25 Apr 2012 at 1:26

GoogleCodeExporter commented 8 years ago
It was easier than expected. Done in r1401.

Original comment by g.rodola on 29 Jun 2012 at 6:45

GoogleCodeExporter commented 8 years ago
Fixed in version 0.6.0, released just now.

Original comment by g.rodola on 13 Aug 2012 at 4:25

GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
Updated csets after the SVN -> Mercurial migration:
r1164 == revision 1b5fe9a4d143
r1401 == revision d2dee2172a33

Original comment by g.rodola on 2 Mar 2013 at 12:04