> import commands > x= commands.getstatusoutput('echo $HOME') > > x[1] gives the value of required directory as string. Or just use d = os.getenv('HOME') Alan G.