Skip to content

Commit 48bb931

Browse files
committed
.
1 parent 5d348f6 commit 48bb931

4 files changed

Lines changed: 262 additions & 253 deletions

File tree

etc/mycog.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -195,6 +195,12 @@ def _runcog(options, uncog=False):
195195

196196
#options.order('cog', 'sphinx', add_rest=True)
197197
cog = cogapp.Cog()
198+
199+
# Change brackets to curly braces, at some point cog changed this format
200+
cog.options.begin_spec = "{{{cog"
201+
cog.options.end_spec = "}}}"
202+
cog.options.end_output = "{{{end}}}"
203+
198204
if uncog:
199205
cog.options.bNoGenerate = True
200206
cog.options.bReplace = True
@@ -232,7 +238,10 @@ def _runcog(options, uncog=False):
232238
# FIXME: This cannot happen since pattern is never None
233239
files = basedir.glob("**/*")
234240

241+
files = sorted(files)
242+
print("FILES:", files)
235243
for f in sorted(files):
244+
print("PROCESS:", f)
236245
cog.process_one_file(str(f))
237246

238247

0 commit comments

Comments
 (0)