mirror of
https://github.com/boltgolt/howdy.git
synced 2024-10-17 10:06:53 +02:00
Merge pull request #719 from mikacousin/dev
Add python3 pam-python support
This commit is contained in:
commit
3306db358a
1 changed files with 7 additions and 3 deletions
|
@ -4,13 +4,17 @@
|
|||
import subprocess
|
||||
import os
|
||||
import glob
|
||||
import sys
|
||||
import syslog
|
||||
|
||||
# pam-python is running python 2, so we use the old module here
|
||||
if sys.version_info.major < 3:
|
||||
import ConfigParser
|
||||
config = ConfigParser.ConfigParser()
|
||||
else:
|
||||
import configparser
|
||||
config = configparser.ConfigParser()
|
||||
|
||||
# Read config from disk
|
||||
config = ConfigParser.ConfigParser()
|
||||
config.read(os.path.dirname(os.path.abspath(__file__)) + "/config.ini")
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue