using __file__ instead of inspect.getfile(inspect.currentframe())

This commit is contained in:
Micah Lee 2014-05-22 15:26:08 -04:00
parent f57207200e
commit 99c444dc4d

View File

@ -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