rename mysql-connector
This commit is contained in:
2
main.py
2
main.py
@@ -4,6 +4,8 @@ __plugin_mainclass__ = "foobar"
|
||||
|
||||
import sys
|
||||
|
||||
print("Loading RedstonerUtils...")
|
||||
|
||||
# damn pythonloader changed this...
|
||||
sys.path += ['', '/usr/lib/python2.7', '/usr/lib/python2.7/plat-linux2', '/usr/lib/python2.7/lib-tk', '/usr/lib/python2.7/lib-old', '/usr/lib/python2.7/lib-dynload', '/usr/local/lib/python2.7/dist-packages', '/usr/lib/python2.7/dist-packages', '/usr/lib/pymodules/python2.7', '/usr/lib/pyshared/python2.7']
|
||||
|
||||
|
||||
@@ -7,7 +7,7 @@ from java.lang import Class
|
||||
|
||||
|
||||
# hacky code to add mysql-connector to java's classpath ('classPathHack')
|
||||
jarfile = "lib/mysql-connector-java-5.1.14-bin.jar"
|
||||
jarfile = "lib/mysql-connector.jar"
|
||||
driver = "com.mysql.jdbc.Driver"
|
||||
|
||||
url = java.io.File(jarfile).toURL()
|
||||
|
||||
Reference in New Issue
Block a user