]> arthur.barton.de Git - netdata.git/commitdiff
debug
authorpaulfantom <paulfantom@gmail.com>
Fri, 17 Jun 2016 13:15:48 +0000 (15:15 +0200)
committerpaulfantom <paulfantom@gmail.com>
Fri, 17 Jun 2016 13:15:48 +0000 (15:15 +0200)
python.d/mysql.chart.py

index d285c7389fdbecf7a75abce23ba9c5b42b3d0af0..e3f17faa94b9888f91e27a2e39f0a57483cde124 100644 (file)
@@ -4,6 +4,8 @@
 NAME = "mysql.chart.py"
 import sys
 
+sys.path.append("./python_modules") #FIXME it is here for debug only
+
 # import 3rd party library to handle MySQL communication
 try:
     import MySQLdb
@@ -20,6 +22,7 @@ except ImportError:
 from base import BaseService
 
 # default configuration (overriden by python.d.plugin)
+# FIXME change password
 config = [
     {
         'name'     : 'local',
@@ -445,8 +448,8 @@ class Service(BaseService):
         
         return True
 
+#FIXME debug only:
 if __name__ == "__main__":
-    sys.path.append("./python_modules")
     my = Service(config[0])
     my.check()
     my.create()