If you're just looking for your home dir, try this:<div><br></div><div><div><br></div><div>1> init:get_argument(home).</div><div>{ok,[["C:\\Users\\goertzen"]]}</div><div><br></div><div><br></div><div>Dan.</div>
<br><div class="gmail_quote">On Fri, Nov 25, 2011 at 7:38 AM, Tim Watson <span dir="ltr"><<a href="mailto:watson.timothy@gmail.com">watson.timothy@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div>What the heck is this all about???</div>
<div> </div>
<div>40> os:getenv("HOMEDRIVE"). <br>"C:"<br>41> os:getenv("HOMEPATH"). <br>
"<a>\\Users\\602382443</a>"<br>42> filename:join(os:getenv("HOMEDRIVE"), os:getenv("HOMEPATH")). <br>"/Users/602382443"<br>
43> filename:nativename(filename:join(os:getenv("HOMEDRIVE"), os:getenv("HOMEPATH"))). <br>"<a>\\Users\\602382443</a>"<br>44> filename:nativename("C:/" ++ os:getenv("HOMEPATH")). <br>
"c:\\Users\\602382443"<br>45> "C:" ++ os:getenv("HOMEPATH").</div>
<div>"c:\\Users\\602382443"<br></div>
<div>Do I *really* have to do this by hand? I had assumed that the whole point of filename:join/2 was that it does the right thing on each platform without me having to worry about what the directory separator is meant to be?</div>
<div> </div>
<div>Am I doing something wrong?</div>
<br>_______________________________________________<br>
erlang-questions mailing list<br>
<a href="mailto:erlang-questions@erlang.org">erlang-questions@erlang.org</a><br>
<a href="http://erlang.org/mailman/listinfo/erlang-questions" target="_blank">http://erlang.org/mailman/listinfo/erlang-questions</a><br>
<br></blockquote></div><br></div>