alliedmodders / hl2sdk-manifests Goto Github PK
View Code? Open in Web Editor NEWInformation about HL2SDKs shared between Metamod:Source and SourceMod.
Information about HL2SDKs shared between Metamod:Source and SourceMod.
My project uses the following file tree:
- configure.py
- deps
- metamod-source
- hl2sdk-manifests
(deps/metamod-source
is a git submodule pointing to metamod-source
, which points to hl2sdk-manifests
)
Upon executing this line, the path is mangled at some point and configuration fails.
hl2sdk_manifests
is a valid absolute path in this case:
builder.Eval(os.path.join(hl2sdk_manifests, 'SdkHelpers.ambuild')
The resulting errors show incorrect paths:
python3 ../configure.py --hl2sdk-manifests /home/user/dev/recorder/deps/metamod-source/hl2sdk-manifests/
...
Configure failed: [Errno 2] No such file or directory: '/home/user/dev/recorder/home/user/dev/recorder/deps/metamod-source/hl2sdk-mani/SdkHelpers.ambuild'
python3 ../configure.py --hl2sdk-manifests ../deps/metamod-source/hl2sdk-manifests/
...
Configure failed: [Errno 2] No such file or directory: '/home/user/dev/deps/metamod-source/hl2sdk-manifests/SdkHelpers.ambuild'
Here is the full output:
Traceback (most recent call last):
File "/home/user/dev/.venv-ambuild/lib/python3.12/site-packages/ambuild2/frontend/v2_2/prep.py", line 156, in Configure
if not cm.generate(options.generator):
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/user/dev/.venv-ambuild/lib/python3.12/site-packages/ambuild2/frontend/context_manager.py", line 93, in generate
self.parseBuildScripts()
File "/home/user/dev/.venv-ambuild/lib/python3.12/site-packages/ambuild2/frontend/v2_2/context_manager.py", line 50, in parseBuildScripts
self.execContext(cx)
File "/home/user/dev/.venv-ambuild/lib/python3.12/site-packages/ambuild2/frontend/v2_2/context_manager.py", line 148, in execContext
exec(code, scriptGlobals)
File "/home/user/dev/recorder/AMBuildScript", line 85, in <module>
SdkHelpers = builder.Eval(os.path.join(hl2sdk_manifests, 'SdkHelpers.ambuild'), {
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/user/dev/.venv-ambuild/lib/python3.12/site-packages/ambuild2/frontend/v2_2/context.py", line 115, in Eval
return self.cm.evalScript(self, path, vars or {})
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/user/dev/.venv-ambuild/lib/python3.12/site-packages/ambuild2/frontend/v2_2/context_manager.py", line 60, in evalScript
obj = self.importScriptImpl(context, path, vars or {})
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/user/dev/.venv-ambuild/lib/python3.12/site-packages/ambuild2/frontend/v2_2/context_manager.py", line 77, in importScriptImpl
self.generator.addConfigureFile(parent, scriptPath)
File "/home/user/dev/.venv-ambuild/lib/python3.12/site-packages/ambuild2/frontend/amb2_gen.py", line 744, in addConfigureFile
self.db.add_or_update_script(path)
File "/home/user/dev/.venv-ambuild/lib/python3.12/site-packages/ambuild2/database.py", line 826, in add_or_update_script
stamp = os.path.getmtime(path)
^^^^^^^^^^^^^^^^^^^^^^
File "<frozen genericpath>", line 67, in getmtime
FileNotFoundError: [Errno 2] No such file or directory: '/home/user/dev/deps/metamod-source/hl2sdk-manifests/SdkHelpers.ambuild'
Configure failed: [Errno 2] No such file or directory: '/home/user/dev/deps/metamod-source/hl2sdk-manifests/SdkHelpers.ambuild'
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.