os.path.join() necessary?

Sean 'Shaleh' Perry shalehperry at attbi.com
Thu May 23 11:31:21 EDT 2002


> 
> I was suprised that I can use (dir + '/' + file) on windows.
> Since my application will only run on windows and unix I won't
> use os.path.join()
> 
> 
> If you just want to join a directory and a file it is no problem,
> but I store paths in a database. This would mean I would have to
> transform the path to the current operating system each time I get
> it from the database.
> 

as pointed out a moment ago, does "dir + '/' + dir2 + '/' + file" work?  Will
it continue to work?  If another admin or user sees the path, will they be
confused by the format?  Just letting it be seems like sloppy coding to me.





More information about the Python-list mailing list