zulip/examples: Remove sys.path modifications.

With the new repo, doing a `pip install -e ./zulip` will be a part
of the core workflow. This mitigates the risk of developers
accidentally testing their changes against an installed copy of the
zulip package rather than the copy in their checkout. Therefore,
we can now get rid of the various `sys.path.inserts` in the examples.
This commit is contained in:
Eeshan Garg 2017-07-29 00:24:42 -02:30
parent de23a1b32f
commit 61d84cd649
13 changed files with 6 additions and 37 deletions

View file

@ -22,8 +22,6 @@
# THE SOFTWARE.
from __future__ import print_function
import sys
import os
import argparse
usage = """list-members --user=<bot's email address> --api-key=<bot's api key> [options]
@ -33,7 +31,6 @@ List the names and e-mail addresses of the people in your realm.
You can omit --user and --api-key arguments if you have a properly set up ~/.zuliprc
"""
sys.path.append(os.path.join(os.path.dirname(__file__), '..'))
import zulip
parser = zulip.add_default_arguments(argparse.ArgumentParser(usage=usage))