Generate the correct path in the sql config
parent
23b188cadc
commit
6f2cd1fa1b
@ -1,6 +1,8 @@
|
||||
import socket
|
||||
import socket, os
|
||||
hostname = socket.gethostname()
|
||||
root = os.getenv('RC_ROOT').replace('\\', '/')
|
||||
shardDev = root + '/pipeline/shard_dev'
|
||||
with open("web_config.sql", "r") as fr:
|
||||
with open("web_config_local.sql", "w") as fw:
|
||||
for l in fr:
|
||||
fw.write(l.replace("%RC_HOSTNAME%", hostname))
|
||||
fw.write(l.replace("%RC_HOSTNAME%", hostname).replace("%RC_SHARD_DEV%", shardDev))
|
||||
|
Loading…
Reference in New Issue