[Tutor] Comments appreciated

Jacob S. keridee at jayco.net
Mon Dec 27 03:39:04 CET 2004


> The only thing that's missing is that this script can't handle paths
> like ~/dir/junkthis

I believe you're looking for os.path.expanduser("~/dir/junkthis")

BTW, trashcan IS a module level variable because it's defined at the module
level. Why it says it's local is beyond me.

HTH,
Jacob Schmidt



More information about the Tutor mailing list