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:
parent
de23a1b32f
commit
61d84cd649
13 changed files with 6 additions and 37 deletions
|
@ -22,8 +22,6 @@
|
|||
# THE SOFTWARE.
|
||||
|
||||
from __future__ import print_function
|
||||
import sys
|
||||
from os import path
|
||||
import argparse
|
||||
|
||||
usage = """create-user --new-email=<email address> --new-password=<password> --new-full-name=<full name> --new-short-name=<short name> [options]
|
||||
|
@ -34,7 +32,6 @@ will be created in your realm.
|
|||
Example: create-user --site=http://localhost:9991 --user=rwbarton@example.com --new-email=jarthur@example.com --new-password=random17 --new-full-name 'J. Arthur Random' --new-short-name='jarthur'
|
||||
"""
|
||||
|
||||
sys.path.append(path.join(path.dirname(__file__), '..'))
|
||||
import zulip
|
||||
|
||||
parser = zulip.add_default_arguments(argparse.ArgumentParser(usage=usage))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue