mirror of
https://github.com/panda3d/panda3d.git
synced 2025-09-30 16:58:40 -04:00
makepanda: locate setup.cfg using __file__, not working directory.
This fixes the buildbots, which import makewheel from inside the makepanda directory.
This commit is contained in:
parent
3f0ab1d198
commit
0343dbcbba
@ -2858,7 +2858,8 @@ def GetMetadataValue(key):
|
||||
if not cfg_parser:
|
||||
# Parse the metadata from the setup.cfg file.
|
||||
cfg_parser = configparser.ConfigParser()
|
||||
cfg_parser.read('setup.cfg')
|
||||
path = os.path.join(os.path.dirname(__file__), '..', 'setup.cfg')
|
||||
assert cfg_parser.read(path), "Could not read setup.cfg file."
|
||||
|
||||
value = cfg_parser.get('metadata', key)
|
||||
if key == 'classifiers':
|
||||
|
Loading…
x
Reference in New Issue
Block a user