<s> import os , sys <EOL> from django . core . management . base import NoArgsCommand <EOL> def transifex_paths ( ) : <EOL> from django . conf import settings as s <EOL> yield s . SCRATCH_DIR <EOL> yield s . STORAGE_DIR <EOL> yield s . LOG_PATH <EOL> class Command ( NoArgsCommand ) : <EOL> help = '<STR_LIT>' <EOL> requires_model_validation = True <EOL> can_import_settings = True <EOL> def handle_noargs ( self , ** options ) : <EOL> for path in transifex_paths ( ) : <EOL> try : <EOL> os . makedirs ( path ) <EOL> sys . stdout . write ( ( u"<STR_LIT>" % path ) . encode ( '<STR_LIT>' ) ) <EOL> except OSError , e : <EOL> sys . stdout . write ( ( u"<STR_LIT>" % ( path , e . strerror ) ) . encode ( '<STR_LIT>' ) ) </s>
