2017-03-10 28 views
0

我嘗試使用Windows的Auth0,但它只是一個試用。 GUI應用程序假設有權訪問本地Active Directory用戶和計算機。通過使用無法使用python2.7訪問Active Directoy

我試圖找出最簡單的實現方法。

+0

我用這個鏈接,它只是不清楚的GUI設計鏈接到源代碼。 我仍然是python編程的新手。 –

+0

請發佈您的代碼。 – Mushir

回答

0

https://docs.python.org/2/library/os.path.html

import os 

path = "your path" 

# Check current working directory. 

retval = os.getcwd() 
print "Current working directory %s" % retval 

# Now change the directory 
os.chdir(path) 

# Check current working directory. 
retval = os.getcwd() 

print "Directory changed successfully %s" % retval