mirror of
https://gitlab.com/flectra-community/devops/odoo-2-flectra-converter.git
synced 2024-11-23 22:02:04 +00:00
Migrate and convert module from odoo 8.0 to flectra 1.0
This commit is contained in:
parent
7106bebf24
commit
24c2c1e902
@ -5,6 +5,7 @@ import logging
|
||||
import os
|
||||
import re
|
||||
import shutil
|
||||
import subprocess
|
||||
from os.path import join as oj
|
||||
from shutil import copytree
|
||||
|
||||
@ -213,6 +214,7 @@ class ModuleMigrator(object):
|
||||
def migrate(self):
|
||||
_logger.info('Starting migration of module %s', self._module_name)
|
||||
copytree(self._src, self._destination, symlinks=True, ignore_dangling_symlinks=True)
|
||||
subprocess.call(['2to3', '-w', self._destination])
|
||||
for base, odoo_dirs, odoo_files in os.walk(self._destination, topdown=True):
|
||||
odoo_files = [f for f in odoo_files if not f[0] == '.']
|
||||
odoo_dirs[:] = [d for d in odoo_dirs if not d[0] == '.']
|
||||
|
Loading…
Reference in New Issue
Block a user