Skip to content

Commit

Permalink
Remove sys.path modification from examples
Browse files Browse the repository at this point in the history
  • Loading branch information
seratch committed Feb 18, 2021
1 parent 5fbf563 commit 3bde6df
Show file tree
Hide file tree
Showing 53 changed files with 99 additions and 399 deletions.
7 changes: 0 additions & 7 deletions examples/aiohttp_devtools/async_app.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,3 @@
# ------------------------------------------------
# instead of slack_bolt in requirements.txt
import sys

sys.path.insert(1, "../..")
# ------------------------------------------------

import logging

logging.basicConfig(level=logging.DEBUG)
Expand Down
7 changes: 0 additions & 7 deletions examples/app.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,3 @@
# ------------------------------------------------
# instead of slack_bolt in requirements.txt
import sys

sys.path.insert(1, "..")
# ------------------------------------------------

import logging

logging.basicConfig(level=logging.DEBUG)
Expand Down
8 changes: 0 additions & 8 deletions examples/app_authorize.py
Original file line number Diff line number Diff line change
@@ -1,11 +1,3 @@
# ------------------------------------------------
# instead of slack_bolt in requirements.txt
import sys


sys.path.insert(1, "..")
# ------------------------------------------------

import logging

logging.basicConfig(level=logging.DEBUG)
Expand Down
7 changes: 0 additions & 7 deletions examples/async_app.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,3 @@
# ------------------------------------------------
# instead of slack_bolt in requirements.txt
import sys

sys.path.insert(1, "..")
# ------------------------------------------------

import logging

logging.basicConfig(level=logging.DEBUG)
Expand Down
7 changes: 0 additions & 7 deletions examples/async_app_authorize.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,3 @@
# ------------------------------------------------
# instead of slack_bolt in requirements.txt
import sys

sys.path.insert(1, "..")
# ------------------------------------------------

import logging

logging.basicConfig(level=logging.DEBUG)
Expand Down
7 changes: 0 additions & 7 deletions examples/aws_lambda/aws_lambda.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,3 @@
# ------------------------------------------------
# instead of slack_bolt in requirements.txt
import sys

sys.path.insert(1, "vendor")
# ------------------------------------------------

import logging

from slack_bolt import App
Expand Down
7 changes: 0 additions & 7 deletions examples/aws_lambda/aws_lambda_oauth.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,3 @@
# ------------------------------------------------
# instead of slack_bolt in requirements.txt
import sys

sys.path.insert(1, "vendor")
# ------------------------------------------------

import logging

from slack_bolt import App
Expand Down
8 changes: 0 additions & 8 deletions examples/aws_lambda/lazy_aws_lambda.py
Original file line number Diff line number Diff line change
@@ -1,11 +1,3 @@
# ------------------------------------------------
# instead of slack_bolt in requirements.txt
import sys
import time

sys.path.insert(1, "vendor")
# ------------------------------------------------

import logging

from slack_bolt import App
Expand Down
7 changes: 0 additions & 7 deletions examples/bottle/app.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,3 @@
# ------------------------------------------------
# instead of slack_bolt in requirements.txt
import sys

sys.path.insert(1, "../..")
# ------------------------------------------------

import logging

logging.basicConfig(level=logging.DEBUG)
Expand Down
7 changes: 0 additions & 7 deletions examples/bottle/oauth_app.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,3 @@
# ------------------------------------------------
# instead of slack_bolt in requirements.txt
import sys

sys.path.insert(1, "../../src")
# ------------------------------------------------

import logging
from slack_bolt import App
from slack_bolt.adapter.bottle import SlackRequestHandler
Expand Down
7 changes: 0 additions & 7 deletions examples/cherrypy/app.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,3 @@
# ------------------------------------------------
# instead of slack_bolt in requirements.txt
import sys

sys.path.insert(1, "../..")
# ------------------------------------------------

import logging

logging.basicConfig(level=logging.DEBUG)
Expand Down
7 changes: 0 additions & 7 deletions examples/cherrypy/oauth_app.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,3 @@
# ------------------------------------------------
# instead of slack_bolt in requirements.txt
import sys

sys.path.insert(1, "../../src")
# ------------------------------------------------

import logging
from slack_bolt import App
from slack_bolt.adapter.cherrypy import SlackRequestHandler
Expand Down
7 changes: 0 additions & 7 deletions examples/dialogs_app.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,3 @@
# ------------------------------------------------
# instead of slack_bolt in requirements.txt
import sys

sys.path.insert(1, "..")
# ------------------------------------------------

import logging

logging.basicConfig(level=logging.DEBUG)
Expand Down
10 changes: 0 additions & 10 deletions examples/django/manage.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,6 @@
"""Django's command-line utility for administrative tasks."""
import os

# ------------------------------------------------
# instead of slack_bolt in requirements.txt

import sys

sys.path.insert(1, "../../..")


# ------------------------------------------------


def main():
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "slackapp.settings")
Expand Down
7 changes: 0 additions & 7 deletions examples/events_app.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,3 @@
# ------------------------------------------------
# instead of slack_bolt in requirements.txt
import sys

sys.path.insert(1, "..")
# ------------------------------------------------

import re
import logging

Expand Down
7 changes: 0 additions & 7 deletions examples/falcon/app.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,3 @@
# ------------------------------------------------
# instead of slack_bolt in requirements.txt
import sys

sys.path.insert(1, "../..")
# ------------------------------------------------

import falcon
import logging
import re
Expand Down
7 changes: 0 additions & 7 deletions examples/falcon/oauth_app.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,3 @@
# ------------------------------------------------
# instead of slack_bolt in requirements.txt
import sys

sys.path.insert(1, "../..")
# ------------------------------------------------

import falcon
import logging
import re
Expand Down
7 changes: 0 additions & 7 deletions examples/fastapi/app.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,3 @@
# ------------------------------------------------
# instead of slack_bolt in requirements.txt
import sys

sys.path.insert(1, "../..")
# ------------------------------------------------

from slack_bolt import App
from slack_bolt.adapter.fastapi import SlackRequestHandler

Expand Down
7 changes: 0 additions & 7 deletions examples/fastapi/async_app.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,3 @@
# ------------------------------------------------
# instead of slack_bolt in requirements.txt
import sys

sys.path.insert(1, "../..")
# ------------------------------------------------

import logging

logging.basicConfig(level=logging.DEBUG)
Expand Down
7 changes: 0 additions & 7 deletions examples/fastapi/async_oauth_app.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,3 @@
# ------------------------------------------------
# instead of slack_bolt in requirements.txt
import sys

sys.path.insert(1, "../..")
# ------------------------------------------------

import logging

logging.basicConfig(level=logging.DEBUG)
Expand Down
7 changes: 0 additions & 7 deletions examples/fastapi/oauth_app.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,3 @@
# ------------------------------------------------
# instead of slack_bolt in requirements.txt
import sys

sys.path.insert(1, "../..")
# ------------------------------------------------

from slack_bolt import App
from slack_bolt.adapter.fastapi import SlackRequestHandler

Expand Down
7 changes: 0 additions & 7 deletions examples/flask/app.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,3 @@
# ------------------------------------------------
# instead of slack_bolt in requirements.txt
import sys

sys.path.insert(1, "../..")
# ------------------------------------------------

import logging

logging.basicConfig(level=logging.DEBUG)
Expand Down
7 changes: 0 additions & 7 deletions examples/flask/oauth_app.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,3 @@
# ------------------------------------------------
# instead of slack_bolt in requirements.txt
import sys

sys.path.insert(1, "../..")
# ------------------------------------------------

import logging
from slack_bolt import App
from slack_bolt.adapter.flask import SlackRequestHandler
Expand Down
7 changes: 0 additions & 7 deletions examples/lazy_async_modals_app.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,3 @@
# ------------------------------------------------
# instead of slack_bolt in requirements.txt
import sys

sys.path.insert(1, "..")
# ------------------------------------------------

import asyncio
import logging
from slack_bolt.async_app import AsyncApp
Expand Down
7 changes: 0 additions & 7 deletions examples/lazy_modals_app.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,3 @@
# ------------------------------------------------
# instead of slack_bolt in requirements.txt
import sys

sys.path.insert(1, "..")
# ------------------------------------------------

import logging
import time

Expand Down
7 changes: 0 additions & 7 deletions examples/message_events.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,3 @@
# ------------------------------------------------
# instead of slack_bolt in requirements.txt
import sys

sys.path.insert(1, "..")
# ------------------------------------------------

import logging
import re
from typing import Callable
Expand Down
7 changes: 0 additions & 7 deletions examples/modals_app.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,3 @@
# ------------------------------------------------
# instead of slack_bolt in requirements.txt
import sys

sys.path.insert(1, "..")
# ------------------------------------------------

import logging

logging.basicConfig(level=logging.DEBUG)
Expand Down
7 changes: 0 additions & 7 deletions examples/modals_app_typed.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,3 @@
# ------------------------------------------------
# instead of slack_bolt in requirements.txt
import sys

sys.path.insert(1, "..")
# ------------------------------------------------

import logging
from typing import Callable
from logging import Logger
Expand Down
7 changes: 0 additions & 7 deletions examples/oauth_app.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,3 @@
# ------------------------------------------------
# instead of slack_bolt in requirements.txt
import sys

sys.path.insert(1, "..")
# ------------------------------------------------

import logging
from slack_bolt import App

Expand Down
7 changes: 0 additions & 7 deletions examples/oauth_app_settings.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,3 @@
# ------------------------------------------------
# instead of slack_bolt in requirements.txt
import sys

sys.path.insert(1, "..")
# ------------------------------------------------

import logging
import os
from slack_bolt import App, BoltResponse
Expand Down
7 changes: 0 additions & 7 deletions examples/oauth_sqlite3_app.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,3 @@
# ------------------------------------------------
# instead of slack_bolt in requirements.txt
import sys

sys.path.insert(1, "..")
# ------------------------------------------------

import logging

logging.basicConfig(level=logging.DEBUG)
Expand Down
7 changes: 0 additions & 7 deletions examples/oauth_sqlite3_app_org_level.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,3 @@
# ------------------------------------------------
# instead of slack_bolt in requirements.txt
import sys

sys.path.insert(1, "..")
# ------------------------------------------------

import logging

logging.basicConfig(level=logging.DEBUG)
Expand Down
8 changes: 0 additions & 8 deletions examples/pyramid/app.py
Original file line number Diff line number Diff line change
@@ -1,11 +1,3 @@
# ------------------------------------------------
# instead of slack_bolt in requirements.txt
import sys

sys.path.insert(1, "../..")
# ------------------------------------------------


import logging
from slack_bolt import App
from slack_bolt.adapter.pyramid.handler import SlackRequestHandler
Expand Down
8 changes: 0 additions & 8 deletions examples/pyramid/oauth_app.py
Original file line number Diff line number Diff line change
@@ -1,11 +1,3 @@
# ------------------------------------------------
# instead of slack_bolt in requirements.txt
import sys

sys.path.insert(1, "../..")
# ------------------------------------------------


import logging
from slack_bolt import App
from slack_bolt.adapter.pyramid.handler import SlackRequestHandler
Expand Down
7 changes: 0 additions & 7 deletions examples/sanic/async_app.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,3 @@
# ------------------------------------------------
# instead of slack_bolt in requirements.txt
import sys

sys.path.insert(1, "../..")
# ------------------------------------------------

import os
from slack_bolt.async_app import AsyncApp
from slack_bolt.adapter.sanic import AsyncSlackRequestHandler
Expand Down
Loading

0 comments on commit 3bde6df

Please sign in to comment.