Skip to content

Commit

Permalink
Update sys_path_hack.py
Browse files Browse the repository at this point in the history
  • Loading branch information
taoruihuang committed Aug 2, 2023
1 parent b7df7d5 commit 6af2730
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/sys_path_hack.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@

if __name__ == "__main__" and __package__ is None:
import sys
from sys import path
import os
from os.path import dirname as dir

path.append(dir(path[0]))
path.insert(0, dir(path[0]))
os.chdir(dir(path[0]))
__package__ = "scripts"

0 comments on commit 6af2730

Please sign in to comment.