On Dec 17, 2006, at 1:15 PM, sheila miguez wrote:

> okay, found <http://docs.python.org/lib/module-os.path.html>
>
> which you can use to get basename, dirname, split, join, normalize,  
> &c.

        Those are used a lot throughout Python, and Dabo is no exception.  
Take a look at dabo/lib/utils.py, which has a lot of our internal  
routines for manipulating paths; these all use the os.path module.

> in my experience with other languages that support multiple platforms
> (e.g. tcl) when I needed to create a pathname I used stuff like that
> to avoid screwing up. I forgot how I did it but I seem to recall also
> even managing to specify some root name to know if I should use c:/ or
> just /. has been a while.

        os.path.abspath("/") will do the trick.

-- Ed Leafe
-- http://leafe.com
-- http://dabodev.com



_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-users

Reply via email to