Replies: 2 comments 4 replies
-
For the first part, not handling your profile = ARGUMENTS.get("profile", "")
if profile:
if os.path.isfile(profile):
customs.append(profile)
elif os.path.isfile(profile + ".py"):
customs.append(profile + ".py")
opts = Variables(customs, ARGUMENTS) you might add some debug prints there to see if it actually got added, or if not, why. To the second part, the persistence of something you thought you removed... SCons does cache various things in different ways, but none that should apply here. The thing affected by Probably the Godot community would be best positioned to help you on this. We here are pretty much stuck in the absence of knowledge of what "I got an error" is It's possible the |
Beta Was this translation helpful? Give feedback.
-
You can do something like this - edit the profile = ARGUMENTS.get("profile", "")
if profile:
if os.path.isfile(profile):
customs.append(profile)
elif os.path.isfile(profile + ".py"):
customs.append(profile + ".py")
breakpoint() # <- add this
opts = Variables(customs, ARGUMENTS) It should stop in the debugger, at that point. Print the value of
There it shows it did see the argument I guess I'm not sure what you do with that information, though... unless it tells you the path was somehow invalid, in which case at least there's a course of action for that problem. |
Beta Was this translation helpful? Give feedback.
-
I'm not sure if this is a Godot related problem, but I gave SCons commands and it ignores them.
I used Godot build options generator to generate an SCons custom option file.
I gave SCons the location of the file:
scons profile="C:/develop/custom.py"
SCons doesn't carry out the command. So I had to give the full list of commands in command prompt.
scons platform=windows dev_build=yes arch=x86_64 vsproj=yes tools=yes mono_glue=no production=yes disable_advanced_gui=no deprecated=no minizip=no module_basis_universal_enabled=no module_camera_enabled=no module_enet_enabled=no module_jpg_enabled=no module_mbedtls_enabled=no module_meshoptimizer_enabled=no module_mobile_vr_enabled=no module_mono_enabled=yes module_msdfgen_enabled=no module_multiplayer_enabled=no module_noise_enabled=no module_openxr_enabled=no module_opus_enabled=no module_pvr_enabled=no module_squish_enabled=no module_text_server_adv_enabled=no module_theora_enabled=no module_upnp_enabled=no module_vorbis_enabled=no module_webm_enabled=no module_webrtc_enabled=no module_websocket_enabled=no module_webxr_enabled=no custom_modules="C:/develop/cppModules" mono_prefix="C:/Program Files/Mono"
I got an error on my custom modules, so I removed the command
custom_modules="C:/develop/cppModules"
However, SCons gives me the same error, though it shouldn't be reading from that directory anymore.
Is it using a cache? I tried using
--no-cache
, but that makes no difference.Beta Was this translation helpful? Give feedback.
All reactions