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):
def loadUserList(ul):
if os.path.isfile(ul):
userlist = open(ul, "r").readline()
userlist = open(ul, "r").read().splitlines()
else:
userlist = ul.split(",")
un = ""
......@@ -149,7 +149,6 @@ def main():
if args.userlist:
args.username = loadUserList(args.userlist)
print(args.username)
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