Hello
I have made this in Python 2.7´
test.py
Code:
class sqlQueryTool():
def query(self,sql):
print "Query executed succesfully."
test2.py
Code:
import sql_query_tool
test = sqlQueryTool()
test.query("SELECT * FROM awm_accounts")
raw_input("")
I get this error:
Code:
Traceback (most recent call last):
File "C:\Users\admin\Desktop\test2.py", line 3, in <module>
test = sqlQueryTool()
NameError: name 'sqlQueryTool' is not defined
Any help is greatly appriciated.
/mads