5 from __future__
import print_function
9 from DataQualityConfigurations
import getmodule
10 print(
'getting configuration', modname)
14 cmdi = sys.argv[0].rfind(
"/")
15 cmd = sys.argv[0][cmdi+1:]
17 print(
"Usage: ", cmd,
"<config> <prefix>")
19 print(
"This is a production utility; use TEST config for development and testing.")
22 if __name__ ==
'__main__':
24 from DataQualityUtils
import filemovemod
26 if len(sys.argv) != 3:
30 configModule = sys.argv[1]
35 print(
"Could not import configuration module \'" + configModule +
"\'")
39 config = cmod.dqconfig
41 print(
"Configuration object 'dqconfig' not defined in module \'" + configModule +
"\'")
44 filemovemod.move_files(sys.argv[2], config)