Skip to content

Commit 5edc4ac

Browse files
committed
removed filename argument from dependency update script
1 parent 84039f8 commit 5edc4ac

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

bin/update-web-dependencies.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#!/usr/bin/env python
22

3-
import sys,re,urllib.request,json,fileinput
3+
import os,sys,re,urllib.request,json,fileinput
44
from prettytable import PrettyTable
55

66
def replaceLinesInFile(file,searchExp,replaceExp):
@@ -15,7 +15,7 @@ def updateDependency(name, oldVersion, newVersion, line, filename, updates):
1515
replaceLinesInFile(filename, line, updatedLine)
1616
updates.add_row([name, oldVersion, newVersion])
1717

18-
filename = sys.argv[1];
18+
filename = os.path.dirname(os.path.realpath(__file__))+"/../templates/base.html.twig";
1919
updates = PrettyTable(['Dependency', 'Old Version', 'New Version'])
2020
for line in open(filename).read().split("\n"):
2121
if "cdnjs" in line:

0 commit comments

Comments
 (0)