We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d7b33c1 commit 50d689eCopy full SHA for 50d689e
1 file changed
cloudbot/__main__.py
@@ -12,9 +12,7 @@
12
# set up environment - we need to make sure we are in the install directory
13
path0 = Path(sys.path[0] or '.').resolve()
14
install_dir = Path(__file__).resolve().parent
15
-if path0 == install_dir:
16
- sys.path[0] = path0 = install_dir.parent
17
-
+sys.path.insert(0, install_dir)
18
os.chdir(str(install_dir.parent))
19
20
# import bot
0 commit comments