@cryptotaxi247 / netdata-1 / commits / e534aa6ed

debug

paulfantom committed Jun 17, 2016 at 15:15 UTC e534aa6ed5c3a6d1fd951c0da4a5e0950e32267b
1 file changed +4 -1
python.d/mysql.chart.py
+4 -1
@@ -4,6 +4,8 @@
4 NAME = "mysql.chart.py"
5 import sys
6
7 +sys.path.append("./python_modules") #FIXME it is here for debug only
8 +
9 # import 3rd party library to handle MySQL communication
10 try:
11 import MySQLdb
@@ -20,6 +22,7 @@ except ImportError:
22 from base import BaseService
23
24 # default configuration (overriden by python.d.plugin)
25 +# FIXME change password
26 config = [
27 {
28 'name' : 'local',
@@ -445,8 +448,8 @@ class Service(BaseService):
448
449 return True
450
451 +#FIXME debug only:
452 if __name__ == "__main__":
449 - sys.path.append("./python_modules")
453 my = Service(config[0])
454 my.check()
455 my.create()