python - NameError: global name 'win32netcon' is not defined -


hey i'm trying run scripts in python 2.7 , i've downloaded matching python windows extension package. reason i'm still getting error. know can download win32netcon?

win32wnet.wnetaddconnection2(win32netcon.resourcetype_disk, nameerror: global name 'win32netcon' not defined 

you need import win32netcon first.

import win32wnet, win32netcon  win32wnet.wnetaddconnection2(win32netcon.resourcetype_disk, password, username, flags) 

Comments

Popular posts from this blog

How has firefox/gecko HTML+CSS rendering changed in version 38? -

javascript - Complex json ng-repeat -

jquery - Cloning of rows and columns from the old table into the new with colSpan and rowSpan -