Commit 58ecb3aa authored by Francesco Poldi's avatar Francesco Poldi

Fixed `userlist` with file as input

parent b084cc76
...@@ -58,7 +58,7 @@ def check(args): ...@@ -58,7 +58,7 @@ def check(args):
def loadUserList(ul): def loadUserList(ul):
if os.path.isfile(ul): if os.path.isfile(ul):
userlist = open(ul, "r").readline() userlist = open(ul, "r").read().splitlines()
else: else:
userlist = ul.split(",") userlist = ul.split(",")
un = "" un = ""
...@@ -149,7 +149,6 @@ def main(): ...@@ -149,7 +149,6 @@ def main():
if args.userlist: if args.userlist:
args.username = loadUserList(args.userlist) args.username = loadUserList(args.userlist)
print(args.username)
c = initialize(args) c = initialize(args)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment