__init__.py
import os names = os.listdir('.') for name in names: try: os.popen('touch %s/__init__.py' % name) except: pass
Why 'os.popen' rather than 'open'? What am I missing?
Post a Comment
1 comment:
Why 'os.popen' rather than 'open'? What am I missing?
Post a Comment