When is a module imported from the standard library?

Ignacio Vazquez-Abrams ignacio at openservices.net
Wed Aug 22 11:55:10 EDT 2001


Oh, wait. Here, I found it:

---
#! /usr/bin/python

import os
import string

print os.path.dirname(string.split(`os`, "'")[3])
---

I tested it under 1.5.2. Does it also work under 2.x?

-- 
Ignacio Vazquez-Abrams  <ignacio at openservices.net>





More information about the Python-list mailing list