Skip to content

Commit cccfbdd

Browse files
committed
[IMP] Remove default value for path and python exec, path was not compatible and user have to explicitly choose their own python exec
1 parent 8c060ea commit cccfbdd

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

odoo_csv_tools/lib/internal/io.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ def write_csv(filename, header, data):
4545

4646
def write_file(filename=None, header=None, data=None, fail=False, model="auto",
4747
launchfile="import_auto.sh", worker=1, batch_size=10, init=False,
48-
conf_file=False, groupby='', sep=";", python_exe='python', path='./', context=None, ignore=""):
48+
conf_file=False, groupby='', sep=";", python_exe='', path='', context=None, ignore=""):
4949
def get_model():
5050
if model == "auto":
5151
return filename.split(os.sep)[-1][:-4]

odoo_csv_tools/lib/transform.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ def process(self, mapping, filename_out, import_args, t='list', null_values=['NU
7474
self._add_data(head, data, filename_out, import_args)
7575
return head, data
7676

77-
def write_to_file(self, script_filename, fail=True, append=False, python_exe='python', path='./'):
77+
def write_to_file(self, script_filename, fail=True, append=False, python_exe='', path=''):
7878
init = not append
7979
for _, info in self.file_to_write.items():
8080
info_copy = dict(info)

0 commit comments

Comments
 (0)