Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix when unschedule mode and customise_command are used together #6492

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
19 changes: 10 additions & 9 deletions Configuration/Applications/python/ConfigBuilder.py
Expand Up @@ -838,15 +838,16 @@ def addCustomise(self,unsch=0):
if len(custMap)!=0:
final_snippet += '\n# End of customisation functions\n'

### now for a usuful command
if self._options.customise_commands:
import string
final_snippet +='\n# Customisation from command line'
for com in self._options.customise_commands.split('\\n'):
com=string.lstrip(com)
self.executeAndRemember(com)
final_snippet +='\n'+com

### now for a useful command
if unsch==1 or not self._options.runUnscheduled:
if self._options.customise_commands:
import string
final_snippet +='\n# Customisation from command line'
for com in self._options.customise_commands.split('\\n'):
com=string.lstrip(com)
self.executeAndRemember(com)
final_snippet +='\n'+com

return final_snippet

#----------------------------------------------------------------------------
Expand Down