We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f8d3529 commit d688079Copy full SHA for d688079
about_code_tool/about.py
@@ -557,7 +557,14 @@ class AboutFile(object):
557
"""
558
def __init__(self, location=None):
559
self.about_resource = None
560
- self.location = os.path.abspath(location)
+ # The os.path.abspath(None) will cause error in linux system.
561
+ # See https://bugs.python.org/issue22587
562
+ # Note that the os.path.abspath is needed for windows when there
563
+ # is long path/filename.
564
+ if on_windows:
565
+ self.location = os.path.abspath(location)
566
+ else:
567
+ self.location = location
568
569
self.parsed = None
570
self.parsed_fields = None
0 commit comments