mirror of
https://github.com/WikiTeam/wikiteam
synced 2024-11-12 07:12:41 +00:00
param
This commit is contained in:
parent
9ab9c64df2
commit
254486af06
@ -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()
|
||||
|
Loading…
Reference in New Issue
Block a user