diff options
author | Himanshu Shekhar <himanshushekharb16@gmail.com> | 2017-04-29 21:46:06 +0530 |
---|---|---|
committer | Himanshu Shekhar <himanshushekharb16@gmail.com> | 2017-04-29 21:46:06 +0530 |
commit | 6ca38cb13411da88f6027e13b7ceaae487c0a3d6 (patch) | |
tree | 84e1716db14b568bbaf62c2f6ee16697215c8700 | |
parent | f210a54057669aa57b042372fe6604d5cbde9cd6 (diff) | |
download | psutil-6ca38cb13411da88f6027e13b7ceaae487c0a3d6.tar.gz |
expecting absolute path in script
-rwxr-xr-x | scripts/internal/check_broken_links.py | 4 |
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: |