Changed the system look-up resources patch

- Slightly more portable, not really much
This commit is contained in:
Salvador E. Tropea 2022-12-16 13:40:35 -03:00
parent c1a646aba8
commit bb4047e748
1 changed files with 1 additions and 1 deletions

View File

@ -442,7 +442,7 @@ class GS(object):
if os.path.isdir(dir_name):
return dir_name
# Try using the system level path
dir_name = os.path.join('/', 'usr', 'share', 'kibot', name)
dir_name = os.path.join(os.path.sep, 'usr', 'share', 'kibot', name)
if os.path.isdir(dir_name):
return dir_name
logger.error('Missing resource directory `{}`'.format(name))