dummy   A
last analyzed

Complexity

Total Complexity 0

Size/Duplication

Total Lines 19
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
eloc 12
dl 0
loc 19
rs 10
c 0
b 0
f 0
wmc 0
1
''' Dummy backend implementation. '''
2
3
import sys
4
5
working_dir, input_file, output_files = sys.argv[1:4]
6
7
print "Dummy was called with the following arguments: "
8
print "     Working dir:  "+working_dir
9
print "     Input file:   "+input_file
10
print "     Output files: "+output_files
11
12
13
if output_files.startswith("*"):
14
	suffix = output_files[1:]
15
	open(working_dir+"/foo"+suffix,"w").close()
16
	open(working_dir+"/bar"+suffix,"w").close()
17
else:
18
	open(working_dir+"/"+output_files)
19