summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIT Fixcomart <it@fixcomart.co.id>2022-09-19 17:20:14 +0700
committerIT Fixcomart <it@fixcomart.co.id>2022-09-19 17:20:14 +0700
commit6233fff4829d7c14bf5bcfd9d7080aed86c98b12 (patch)
tree6b06d2074efc1d9a107288f50ef6e30fbf4538ed
parentd601f6e282e22bee9ac99063a12a1a0efa9797e6 (diff)
restore pidfile
-rwxr-xr-xjasper_reports/JasperReports/jasper_server.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/jasper_reports/JasperReports/jasper_server.py b/jasper_reports/JasperReports/jasper_server.py
index b88b7f9..c055072 100755
--- a/jasper_reports/JasperReports/jasper_server.py
+++ b/jasper_reports/JasperReports/jasper_server.py
@@ -102,8 +102,7 @@ class JasperServer:
process = subprocess.Popen(command, env=env, cwd=cwd)
if self.pidfile:
- path = '/odoo14/odoo14-server/odoo-jasper.pid'
- with open(path, 'w') as f:
+ with open(self.pidfile, 'w') as f:
f.write(str(process.pid))
def execute(self, *args):