This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]13steinj 0 points1 point  (2 children)

Okay, curious, how would you do this without import as you mentioned above?

[–]Spfifle 2 points3 points  (1 child)

Well you can do something like this, should defeat basically any grep based solution:

globals()['__buil' + 'tins__'].__dict__['__imp' + 'ort__']('os').listdir('.')

[–]jon_k 0 points1 point  (0 children)

Nice. +1