On Tue, Dec 30, 2008 at 10:55 AM, Rob McBroom <textmate(a)skurfer.com> wrote:
On 2008-Dec-29, at 3:41 PM, Andrea Crotti wrote:
Thanks a lot Rob, I have another problem, the
from os import environ
mod = environ['TM_FILENAME'].split('.')
Doesn't work because I also need to import mod, but if I put also
import mod, of course it doesn't work as it's not substituted the
value in the import statement.
This seemed to work with the limited testing I did:
exec('import ' + mod)
Just insert that before the call to dis.dis().
Because it screws up the order in which people normally read text.
Why is it bad to top-post your reply?
textmate mailing list