Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
O
Odoo scripts
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Package Registry
Container Registry
Operate
Terraform modules
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
XCG
Odoo scripts
Commits
5fde889c613f
Commit
5fde889c613f
authored
6 years ago
by
Vincent Hatakeyama
Browse files
Options
Downloads
Patches
Plain Diff
local configuration file can now be an argument
parent
7a87a7532f03
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
docker_dev_start.py
+7
-2
7 additions, 2 deletions
docker_dev_start.py
with
7 additions
and
2 deletions
docker_dev_start.py
+
7
−
2
View file @
5fde889c
...
...
@@ -276,6 +276,11 @@
default
=
None
,
dest
=
'
DUMP
'
,
)
parser
.
add_argument
(
'
--config
'
,
help
=
"
Configuration file to use, if any [default: %(default)s]
"
,
default
=
os
.
path
.
join
(
'
conf
'
,
'
dev
'
,
'
odoo.conf
'
),
)
# TODO detect that user is member of docker group
...
...
@@ -463,8 +468,8 @@
arg
.
append
(
'
%s
'
%
nmspc
.
dbport
)
# auto detect local conf
local_conf_
dir
=
os
.
path
.
join
(
'
conf
'
,
'
dev
'
)
local_conf_
path
=
os
.
path
.
join
(
local_conf_dir
,
'
odoo.conf
'
)
local_conf_
path
=
nmspc
.
config
local_conf_
dir
=
os
.
path
.
dirname
(
os
.
path
.
realpath
(
local_conf_path
)
)
user
=
db_user
password
=
db_password
if
os
.
path
.
isfile
(
local_conf_path
):
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment