mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-02 18:03:56 -04:00
deploy-ng: Change default model-cache-dir on deployed applications
We replace panda3d in the model-cache-dir ConfigVariable with the name from setup.py.
This commit is contained in:
parent
d613523f14
commit
01ae235bfb
@ -315,16 +315,17 @@ class build_apps(distutils.core.Command):
|
|||||||
ln = ln.strip()
|
ln = ln.strip()
|
||||||
useline = True
|
useline = True
|
||||||
if ln.startswith('#') or not ln:
|
if ln.startswith('#') or not ln:
|
||||||
useline = False
|
continue
|
||||||
else:
|
if 'model-cache-dir' in ln:
|
||||||
for plugin in check_plugins:
|
ln = ln.replace('/panda3d', '/{}'.format(self.distribution.get_name()))
|
||||||
if plugin in ln and plugin not in self.plugins:
|
for plugin in check_plugins:
|
||||||
useline = False
|
if plugin in ln and plugin not in self.plugins:
|
||||||
if warn_on_missing_plugin:
|
useline = False
|
||||||
self.warn(
|
if warn_on_missing_plugin:
|
||||||
"Missing plugin ({0}) referenced in user PRC data".format(plugin)
|
self.warn(
|
||||||
)
|
"Missing plugin ({0}) referenced in user PRC data".format(plugin)
|
||||||
break
|
)
|
||||||
|
break
|
||||||
if useline:
|
if useline:
|
||||||
out.append(ln)
|
out.append(ln)
|
||||||
return out
|
return out
|
||||||
|
Loading…
x
Reference in New Issue
Block a user