Skip to content

Commit

Permalink
修改PY脚本,便于使用
Browse files Browse the repository at this point in the history
  • Loading branch information
GamerNoTitle committed Apr 20, 2020
1 parent 0df4384 commit 998e48a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions BQB-Link-List-Generate.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import json as js
import os
path = 'D:\OneDrive - 87ouo,Inc\Github\Picture-repo-v1\img\BQB'
localpath = 'D:\OneDrive - 87ouo,Inc\Github\Picture-repo-v1\img\BQB'
remotepath = 'https://cdn.jsdelivr.net/gh/GamerNoTitle/Picture-repo-v1@master/img/BQB/'
def findAllFile(base):
for root, ds, fs in os.walk(base):
for f in fs:
Expand All @@ -11,7 +11,7 @@ def main():
linklist=[]
num=1
for i in findAllFile(base):
linklist.append('custom{}: "https://cdn.jsdelivr.net/gh/GamerNoTitle/Picture-repo-v1@master/img/BQB/{}",'.format(num,i))
linklist.append('custom{}: '.format(num)+ remotepath + "{}" .format(i))
num=num+1
print(str(linklist).replace(',\', \'',', '))
# print(linklist)
Expand Down

0 comments on commit 998e48a

Please sign in to comment.