forked from theatlantic/python-active-directory
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathgentab.py
More file actions
19 lines (14 loc) · 625 Bytes
/
gentab.py
File metadata and controls
19 lines (14 loc) · 625 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#
# This file is part of Python-AD. Python-AD is free software that is made
# available under the MIT license. Consult the file "LICENSE" that is
# distributed together with this file for the exact licensing terms.
#
# Python-AD is copyright (c) 2007 by the Python-AD authors. See the file
# "AUTHORS" for a complete overview.
import os
# This script generates the PLY parser tables. Note: It needs to be run from
# the top-level python-ad directory!
from activedirectory.protocol.ldapfilter import Parser as LDAPFilterParser
os.chdir('lib/activedirectory/protocol')
parser = LDAPFilterParser()
parser._write_parsetab()