mirror of
https://github.com/onionshare/onionshare.git
synced 2025-06-08 14:52:59 -04:00
using __file__ instead of inspect.getfile(inspect.currentframe())
This commit is contained in:
parent
f57207200e
commit
99c444dc4d
1 changed files with 3 additions and 4 deletions
|
@ -1,11 +1,10 @@
|
|||
#!/usr/bin/env python
|
||||
|
||||
import os, sys, subprocess, time, hashlib, inspect, platform
|
||||
import os, sys, subprocess, time, hashlib, platform
|
||||
from random import randint
|
||||
from functools import wraps
|
||||
|
||||
lib_path = os.path.dirname(os.path.abspath(inspect.getfile(inspect.currentframe())))+'/lib'
|
||||
sys.path.append(lib_path)
|
||||
sys.path.append(os.path.dirname(__file__)+'/lib')
|
||||
|
||||
from stem.control import Controller
|
||||
from stem import SocketError
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue