Skip to content
Snippets Groups Projects
Unverified Commit 4c2445f1 authored by David Beniamine's avatar David Beniamine
Browse files

Set webserver root

parent 99749ffc
No related branches found
No related tags found
No related merge requests found
......@@ -16,12 +16,15 @@
# You should have received a copy of the GNU Affero General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
import os
import pkg_resources
from http.server import HTTPServer
from http.server import CGIHTTPRequestHandler
from .passcheckerdefaults import PASS_CHECKER_DEFAULTS
def server(address=PASS_CHECKER_DEFAULTS['address'], port=PASS_CHECKER_DEFAULTS['port']):
os.chdir(os.path.dirname(__file__)+"/../")
server_address = (address, port)
server = HTTPServer
handler = CGIHTTPRequestHandler
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment