Skip to content

Commit

Permalink
Merge pull request #1402 from holajsh/1401_python3_module_fixes
Browse files Browse the repository at this point in the history
[#1401] 🐛 Fix python3 incompatibilities in module manipulation code
  • Loading branch information
xael-fry authored Apr 12, 2022
2 parents 24a0933 + 547bf88 commit b1729b1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion framework/pym/play/commands/modulesrepo.py
Original file line number Diff line number Diff line change
Expand Up @@ -239,7 +239,7 @@ def new(app, args, play_env):
replaceAll(os.path.join(app.path, 'conf/messages'), r'%MODULE%', application_name)
replaceAll(os.path.join(app.path, 'conf/dependencies.yml'), r'%MODULE%', application_name)
replaceAll(os.path.join(app.path, 'conf/routes'), r'%MODULE%', application_name)
replaceAll(os.path.join(app.path, 'conf/routes'), r'%MODULE_LOWERCASE%', string.lower(application_name))
replaceAll(os.path.join(app.path, 'conf/routes'), r'%MODULE_LOWERCASE%', application_name.lower())
os.mkdir(os.path.join(app.path, 'app'))
os.mkdir(os.path.join(app.path, 'app/controllers'))
os.mkdir(os.path.join(app.path, 'app/controllers/%s' % application_name))
Expand Down
2 changes: 1 addition & 1 deletion resources/module-skel/commands.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ def execute(**kargs):
env = kargs.get("env")

if command == "%MODULE%:hello":
print "~ Hello"
print("~ Hello")


# This will be executed before any command (new, run...)
Expand Down

0 comments on commit b1729b1

Please sign in to comment.