mirror of
https://gitlab.com/flectra-community/devops/odoo-2-flectra-converter.git
synced 2025-08-14 14:45:41 +00:00
Compare commits
3 Commits
Author | SHA1 | Date | |
---|---|---|---|
|
c2dd6c77e1 | ||
|
bb41995bce | ||
|
c319dd7c87 |
2
.gitignore
vendored
2
.gitignore
vendored
@@ -1,3 +1,5 @@
|
|||||||
/data
|
/data
|
||||||
.idea/
|
.idea/
|
||||||
__pycache__/
|
__pycache__/
|
||||||
|
flectra/
|
||||||
|
odoo/
|
@@ -5,7 +5,6 @@ import logging
|
|||||||
import os
|
import os
|
||||||
import re
|
import re
|
||||||
import shutil
|
import shutil
|
||||||
import subprocess
|
|
||||||
from os.path import join as oj
|
from os.path import join as oj
|
||||||
from shutil import copytree
|
from shutil import copytree
|
||||||
|
|
||||||
@@ -214,7 +213,6 @@ class ModuleMigrator(object):
|
|||||||
def migrate(self):
|
def migrate(self):
|
||||||
_logger.info('Starting migration of module %s', self._module_name)
|
_logger.info('Starting migration of module %s', self._module_name)
|
||||||
copytree(self._src, self._destination, symlinks=True, ignore_dangling_symlinks=True)
|
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):
|
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_files = [f for f in odoo_files if not f[0] == '.']
|
||||||
odoo_dirs[:] = [d for d in odoo_dirs if not d[0] == '.']
|
odoo_dirs[:] = [d for d in odoo_dirs if not d[0] == '.']
|
||||||
|
Reference in New Issue
Block a user