<DIV>
<DIV>Hi,</DIV>
<DIV>The required code is:</DIV>
<DIV>&nbsp;</DIV>
<DIV>import commands</DIV>
<DIV>x= commands.getstatusoutput('echo $HOME')</DIV>
<DIV>&nbsp;</DIV>
<DIV>x[1] gives the value of required directory as string.</DIV>
<DIV>&nbsp;</DIV>
<DIV>Shitiz<BR><BR><B><I>Mike Wagman &lt;mwagman@charter.net&gt;</I></B> wrote:</DIV>
<BLOCKQUOTE class=replbq style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #1010ff 2px solid">How can I tell using python what the user that is running the softwares<BR>home directory is. I need it so I can finish a linux app and save config<BR>files (etc) in that directory.<BR><BR>Thanks<BR>Mike<BR><BR><BR>_______________________________________________<BR>Tutor maillist - Tutor@python.org<BR><A href="http://mail.python.org/mailman/listinfo/tutor">http://mail.python.org/mailman/listinfo/tutor</A></BLOCKQUOTE></DIV><p><hr SIZE=1>
Do you Yahoo!?<br>
Yahoo! Search - <a href="http://search.yahoo.com/?fr=ad-mailsig-home">Find what you’re looking for faster.</a>