summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHimanshu Shekhar <himanshushekharb16@gmail.com>2017-04-29 21:46:06 +0530
committerHimanshu Shekhar <himanshushekharb16@gmail.com>2017-04-29 21:46:06 +0530
commit6ca38cb13411da88f6027e13b7ceaae487c0a3d6 (patch)
tree84e1716db14b568bbaf62c2f6ee16697215c8700
parentf210a54057669aa57b042372fe6604d5cbde9cd6 (diff)
downloadpsutil-6ca38cb13411da88f6027e13b7ceaae487c0a3d6.tar.gz
expecting absolute path in script
-rwxr-xr-xscripts/internal/check_broken_links.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/scripts/internal/check_broken_links.py b/scripts/internal/check_broken_links.py
index d22192bc..8a507203 100755
--- a/scripts/internal/check_broken_links.py
+++ b/scripts/internal/check_broken_links.py
@@ -52,7 +52,9 @@ URL_REGEX = '(?:http|ftp|https)?://(?:[a-zA-Z]|[0-9]|[$-_@.&+]|[!*\(\),]|(?:%[0-
def get_urls(filename):
"""Extracts all URLs available in specified filename
"""
- fname = os.path.abspath(os.path.join(HERE, filename))
+ # fname = os.path.abspath(os.path.join(HERE, filename))
+ # expecting absolute path
+ fname = os.path.abspath(filename)
print (fname)
text = ''
with open(fname) as f: