2
0
mirror of https://github.com/WikiTeam/wikiteam synced 2024-11-12 07:12:41 +00:00
This commit is contained in:
emijrp 2018-05-05 20:24:07 +02:00
parent 9ab9c64df2
commit 254486af06

View File

@ -152,14 +152,13 @@ def main():
print('Please, introduce a wikispaces wiki url or filename.\nExample: https://yourwiki.wikispaces.com or mylistofwikis.txt')
sys.exit()
param = sys.argv[1]
param = param.rstrip('/')
if not param:
print('Please, introduce a wikispaces wiki url or filename.\nExample: https://yourwiki.wikispaces.com or mylistofwikis.txt')
sys.exit()
wikilist = []
if '://' in param:
wikilist.append(param)
wikilist.append(param.rstrip('/'))
else:
with open(param, 'r') as f:
wikilist = f.read().strip().splitlines()