- Posts: 52
- Thank you received: 3
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
cmorley wrote: it overwrite the custom post gui file because it allows the users to select options that require changes in the file.
cmorley wrote: probably a better way (one that pncconf uses) is have the postgui code call a user hal file after all the machine written code.
This user file would not be overwritten.
Put another way have the postgui file call the custom hal file.
cmorley wrote: Even better would be to have stepconf smart enough to work around custom code but I think that is just do difficult to do well.
Please Log in or Create an account to join the conversation.
Ok, you're right. So I think this row is useless:
Originally maybe someone wanted to save the file and then he left there these lines.Code:shutil.copy( custom,os.path.join(base,"postgui_backup.hal") )
I think this is risky order of stuff is important.The easiest way I think is tell of stepconf just append a second file at the end of custom_postgui.hal. Like:
cat user_custom_postgui.hal >> custom_postgui.hal.
Nope.Or I can update the ini file to include user_custom_postgui.hal.
1) Do you think I can add additional POSTGUI_HALFILE lines?:
POSTGUI_HALFILE = custom_postgui.hal
POSTGUI_HALFILE = user_custom_postgui.hal
Or can I put other files in same row?:
POSTGUI_HALFILE = custom_postgui.hal; user_custom_postgui.hal
Yes this is what i was referring to:2) Is there a way to call a hal file within another?:
load user_custom_postgui.hal
cmorley wrote: Even better would be to have stepconf smart enough to work around custom code but I think that is just do difficult to do well.
To differentiate the stepconf lines those custom lines, I might add comment lines like many programs, such as:
#### do not remove this line ####
What I do not know is whether there are precedence in command of hal files. In this case I would not know how to handle the lines.
Thanks, Nicola.
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.