zephyr_mirror: Add option to control path to streams file.
This makes it easy to test the class mirror on just a single test stream. (imported from commit 3decb1ced54507683f1c0634df14f73e693104ef)
This commit is contained in:
parent
2c71f12ffe
commit
9d55822cfb
|
@ -213,7 +213,7 @@ def zephyr_bulk_subscribe(subs):
|
|||
|
||||
def update_subscriptions():
|
||||
try:
|
||||
f = file("/home/humbug/public_streams", "r")
|
||||
f = file(options.stream_file_path, "r")
|
||||
public_streams = simplejson.loads(f.read())
|
||||
f.close()
|
||||
except:
|
||||
|
@ -801,6 +801,10 @@ def parse_args():
|
|||
parser.add_option('--enable-log',
|
||||
dest='log_path',
|
||||
help=optparse.SUPPRESS_HELP)
|
||||
parser.add_option('--stream-file-path',
|
||||
dest='stream_file_path',
|
||||
default="/home/humbug/public_streams",
|
||||
help=optparse.SUPPRESS_HELP)
|
||||
parser.add_option('--no-forward-personals',
|
||||
dest='forward_personals',
|
||||
help=optparse.SUPPRESS_HELP,
|
||||
|
|
Loading…
Reference in a new issue