@@ -1278,8 +1278,9 @@ def get_about_context(self, about_object):
12781278 msg = ('Multiple licenses is not supported. '
12791279 'Skipping License generation.' )
12801280 if on_windows :
1281- if about_object .location .startswith (posix_unc_prefix ()):
1282- about_object .location = about_object .location .strip (posix_unc_prefix ())
1281+ if (about_object .location .startswith (posix_unc_prefix ())
1282+ or about_object .location .startswith (UNC_PREFIX )):
1283+ about_object .location = about_object .location .strip (posix_unc_prefix ()).strip (UNC_PREFIX )
12831284 err = Error (GENATTRIB , 'dje_license' ,
12841285 about_object .location , msg )
12851286 self .genattrib_errors .append (err )
@@ -1298,8 +1299,9 @@ def get_about_context(self, about_object):
12981299 msg = ('No license_text found. '
12991300 'Skipping License generation.' )
13001301 if on_windows :
1301- if about_object .location .startswith (posix_unc_prefix ()):
1302- about_object .location = about_object .location .strip (posix_unc_prefix ())
1302+ if (about_object .location .startswith (posix_unc_prefix ())
1303+ or about_object .location .startswith (UNC_PREFIX )):
1304+ about_object .location = about_object .location .strip (posix_unc_prefix ()).strip (UNC_PREFIX )
13031305 err = Error (GENATTRIB , 'license_text_file' ,
13041306 about_object .location , msg )
13051307 self .genattrib_errors .append (err )
0 commit comments