Skip to content

Commit a75ede9

Browse files
authored
Merge pull request #290 from linuxdaemon/gonzobot+fix-restart-path
Fix python path after restart
2 parents d7b33c1 + 50d689e commit a75ede9

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

cloudbot/__main__.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,7 @@
1212
# set up environment - we need to make sure we are in the install directory
1313
path0 = Path(sys.path[0] or '.').resolve()
1414
install_dir = Path(__file__).resolve().parent
15-
if path0 == install_dir:
16-
sys.path[0] = path0 = install_dir.parent
17-
15+
sys.path.insert(0, install_dir)
1816
os.chdir(str(install_dir.parent))
1917

2018
# import bot

0 commit comments

Comments
 (0)