Skip to content

Commit

Permalink
Update tools.py
Browse files Browse the repository at this point in the history
  • Loading branch information
midoks committed Jul 7, 2022
1 parent 108cfd5 commit 072e568
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tools.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@
import mw
import db

cmd = 'ls /usr/local/lib/ | grep python | cut -d \\ -f 1 | awk \'END {print}\''
info = mw.execShell(cmd)
p = "/usr/local/lib/" + info[0].strip() + "/site-packages"
sys.path.append(p)
# cmd = 'ls /usr/local/lib/ | grep python | cut -d \\ -f 1 | awk \'END {print}\''
# info = mw.execShell(cmd)
# p = "/usr/local/lib/" + info[0].strip() + "/site-packages"
# sys.path.append(p)


def set_panel_pwd(password, ncli=False):
Expand Down

0 comments on commit 072e568

Please sign in to comment.