mirror of
https://github.com/onionshare/onionshare.git
synced 2024-10-01 01:35:40 -04:00
using __file__ instead of inspect.getfile(inspect.currentframe())
This commit is contained in:
parent
f57207200e
commit
99c444dc4d
@ -1,11 +1,10 @@
|
|||||||
#!/usr/bin/env python
|
#!/usr/bin/env python
|
||||||
|
|
||||||
import os, sys, subprocess, time, hashlib, inspect, platform
|
import os, sys, subprocess, time, hashlib, platform
|
||||||
from random import randint
|
from random import randint
|
||||||
from functools import wraps
|
from functools import wraps
|
||||||
|
|
||||||
lib_path = os.path.dirname(os.path.abspath(inspect.getfile(inspect.currentframe())))+'/lib'
|
sys.path.append(os.path.dirname(__file__)+'/lib')
|
||||||
sys.path.append(lib_path)
|
|
||||||
|
|
||||||
from stem.control import Controller
|
from stem.control import Controller
|
||||||
from stem import SocketError
|
from stem import SocketError
|
||||||
|
Loading…
Reference in New Issue
Block a user