#NEWLINE# def create_wqdb_namespace( ) : #NEWLINE# #INDENT# "\n    Since tests aren't picking up package_dir, populate wq.db namespace with\n    symlinks back to top level directories.\n    " #NEWLINE# if os . path . isdir ( 'wq/db' ) : #NEWLINE# #INDENT# return #NEWLINE# #UNINDENT# os . makedirs ( 'wq/db' ) #NEWLINE# for folder in ( 'rest' , 'contrib' , 'patterns' , 'default_settings.py' ) : #NEWLINE# #INDENT# os . symlink ( ( '../../' + folder ) , ( 'wq/db/' + init ) ) #NEWLINE# #UNINDENT# init = open ( os . path . join ( 'wq/db' , '__init__.py' ) , 'w' ) #NEWLINE# init . write ( '' ) #NEWLINE# init . close ( )