We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0f94c4b commit c201decCopy full SHA for c201dec
1 file changed
app/pass
@@ -16,16 +16,16 @@ TOP = 'PARAMS'
16
17
if __name__ == '__main__':
18
if len(sys.argv) != 2:
19
- print("Usage: %s <config-file>" % sys.argv[0])
+ print("Usage: %s <config-file>" % sys.argv[0], file=sys.stderr)
20
sys.exit(1)
21
cfg_path = sys.argv[1]
22
if not os.path.isfile(cfg_path):
23
- print("Unable to find configuration file %s." % cfg_path)
+ print("Unable to find configuration file %s." % cfg_path, file=sys.stderr)
24
25
cfg = ConfigObj(cfg_path)
26
fil = cfg[TOP]['shared']
27
if not os.path.isfile(fil):
28
- print("Unable to find shared configuration file %s." % fil)
+ print("Unable to find shared configuration file %s." % fil, file=sys.stderr)
29
30
shr = ConfigObj(fil)
31
sec = cfg[TOP]['secret']
0 commit comments