We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
pymodbus.simulator ignores command line arguments "http_port" and "json_file"
### Versions

- Python: 3.10.10
- OS: Fedora 36
- Pymodbus: 3.2.2

### Pymodbus Specific

- Server: tcp
- Client: tcp

### Description

- when starting pymodbus.simulator with a specific json file, an error stating a different filename is shown
```
$ pymodbus.simulator --json_file /tmp/setup.json 
2023-03-25 20:06:03,532 INFO  logging:96 Start simulator
Traceback (most recent call last):
  File "/usr/bin/pymodbus.simulator", line 8, in <module>
    sys.exit(main())
  File "/usr/lib/python3.10/site-packages/pymodbus/server/simulator/main.py", line 119, in main
    asyncio.run(run_main(), debug=True)
  File "/usr/lib64/python3.10/asyncio/runners.py", line 44, in run
    return loop.run_until_complete(main)
  File "/usr/lib64/python3.10/asyncio/base_events.py", line 649, in run_until_complete
    return future.result()
  File "/usr/lib/python3.10/site-packages/pymodbus/server/simulator/main.py", line 113, in run_main
    task = ModbusSimulatorServer(**cmd_args)
  File "/usr/lib/python3.10/site-packages/pymodbus/server/simulator/http_server.py", line 130, in __init__
    with open(json_file, encoding="utf-8") as file:
FileNotFoundError: [Errno 2] No such file or directory: './pymodbus/server/simulator/setup.json'
```
- the problem is in https://github.com/pymodbus-dev/pymodbus/blob/c2db53cad3c60834bffecd23db699f6982f914fb/pymodbus/server/simulator/main.py#L113 where the command line arguments are overwritten
- if it is the intention having default values, a patch keeping exactly these defaults would look like this:
```
diff --git a/pymodbus/server/simulator/main.py b/pymodbus/server/simulator/main.py
index 09af492..443e1a6 100755
--- a/pymodbus/server/simulator/main.py
+++ b/pymodbus/server/simulator/main.py
@@ -70,6 +70,7 @@ def get_commandline():
     parser.add_argument(
         "--http_port",
         help="use <http_port> as port to bind http listen",
+        default=8081,
         type=str,
     )
     parser.add_argument(
@@ -82,6 +83,7 @@ def get_commandline():
     parser.add_argument(
         "--json_file",
         help='name of json file, default is "setup.json"',
+        default="./pymodbus/server/simulator/setup.json",
         type=str,
     )
     parser.add_argument(
@@ -109,8 +111,6 @@ def get_commandline():
 async def run_main():
     """Run server async."""
     cmd_args = get_commandline()
-    cmd_args["http_port"] = 8081
-    cmd_args["json_file"] = "./pymodbus/server/simulator/setup.json"
     task = ModbusSimulatorServer(**cmd_args)
     await task.run_forever()
 ```
- however, for running pymodbus.simulator after installing without any arguments, I would suggest the following:
  - install the default setup.json e.g. into the same directory as main.py of the simulator
  - use a diff like this:
```
diff --git a/pymodbus/server/simulator/main.py b/pymodbus/server/simulator/main.py
index 09af492..086d724 100755
--- a/pymodbus/server/simulator/main.py
+++ b/pymodbus/server/simulator/main.py
@@ -41,6 +41,7 @@ options:
 """
 import argparse
 import asyncio
+import os
 
 from pymodbus import pymodbus_apply_logging_config
 from pymodbus.logging import Log
@@ -70,6 +71,7 @@ def get_commandline():
     parser.add_argument(
         "--http_port",
         help="use <http_port> as port to bind http listen",
+        default=8081,
         type=str,
     )
     parser.add_argument(
@@ -82,6 +84,7 @@ def get_commandline():
     parser.add_argument(
         "--json_file",
         help='name of json file, default is "setup.json"',
+        default=os.path.join(os.path.dirname(__file__), "setup.json"),
         type=str,
     )
     parser.add_argument(
@@ -109,8 +112,6 @@ def get_commandline():
 async def run_main():
     """Run server async."""
     cmd_args = get_commandline()
-    cmd_args["http_port"] = 8081
-    cmd_args["json_file"] = "./pymodbus/server/simulator/setup.json"
     task = ModbusSimulatorServer(**cmd_args)
     await task.run_forever()
 
```
- please provide some guidance which way to go, then I'll create an according pull request

--- END ISSUE ---

Below are some code segments, each from a relevant file. One or more of these files may contain bugs.
--- BEGIN FILES ---
Path: `pymodbus/server/simulator/main.py`
Content:
```
1 #!/usr/bin/env python3
2 """HTTP server for modbus simulator.
3 
4 The modbus simulator contain 3 distint parts:
5 
6 - Datastore simulator, to define registers and their behaviour including actions: (simulator)(../../datastore/simulator.py)
7 - Modbus server: (server)(./http_server.py)
8 - HTTP server with REST API and web pages providing an online console in your browser
9 
10 Multiple setups for different server types and/or devices are prepared in a (json file)(./setup.json), the detailed configuration is explained in (doc)(README.md)
11 
12 The command line parameters are kept to a minimum:
13 
14 usage: main.py [-h] [--modbus_server MODBUS_SERVER]
15                [--modbus_device MODBUS_DEVICE] [--http_host HTTP_HOST]
16                [--http_port HTTP_PORT]
17                [--log {critical,error,warning,info,debug}]
18                [--json_file JSON_FILE]
19                [--custom_actions_module CUSTOM_ACTIONS_MODULE]
20 
21 Modbus server with REST-API and web server
22 
23 options:
24   -h, --help            show this help message and exit
25   --modbus_server MODBUS_SERVER
26                         use <modbus_server> from server_list in json file
27   --modbus_device MODBUS_DEVICE
28                         use <modbus_device> from device_list in json file
29   --http_host HTTP_HOST
30                         use <http_host> as host to bind http listen
31   --http_port HTTP_PORT
32                         use <http_port> as port to bind http listen
33   --log {critical,error,warning,info,debug}
34                         set log level, default is info
35   --log_file LOG_FILE
36                         name of server log file, default is "server.log"
37   --json_file JSON_FILE
38                         name of json_file, default is "setup.json"
39   --custom_actions_module CUSTOM_ACTIONS_MODULE
40                         python file with custom actions, default is none
41 """
42 import argparse
43 import asyncio
44 
45 from pymodbus import pymodbus_apply_logging_config
46 from pymodbus.logging import Log
47 from pymodbus.server.simulator.http_server import ModbusSimulatorServer
48 
49 
50 def get_commandline():
51     """Get command line arguments."""
52     parser = argparse.ArgumentParser(
53         description="Modbus server with REST-API and web server"
54     )
55     parser.add_argument(
56         "--modbus_server",
57         help="use <modbus_server> from server_list in json file",
58         type=str,
59     )
60     parser.add_argument(
61         "--modbus_device",
62         help="use <modbus_device> from device_list in json file",
63         type=str,
64     )
65     parser.add_argument(
66         "--http_host",
67         help="use <http_host> as host to bind http listen",
68         type=str,
69     )
70     parser.add_argument(
71         "--http_port",
72         help="use <http_port> as port to bind http listen",
73         type=str,
74     )
75     parser.add_argument(
76         "--log",
77         choices=["critical", "error", "warning", "info", "debug"],
78         help="set log level, default is info",
79         default="info",
80         type=str,
81     )
82     parser.add_argument(
83         "--json_file",
84         help='name of json file, default is "setup.json"',
85         type=str,
86     )
87     parser.add_argument(
88         "--log_file",
89         help='name of server log file, default is "server.log"',
90         type=str,
91     )
92     parser.add_argument(
93         "--custom_actions_module",
94         help="python file with custom actions, default is none",
95         type=str,
96     )
97     args = parser.parse_args()
98     pymodbus_apply_logging_config(args.log.upper())
99     Log.info("Start simulator")
100     cmd_args = {}
101     for argument in args.__dict__:
102         if argument == "log":
103             continue
104         if args.__dict__[argument] is not None:
105             cmd_args[argument] = args.__dict__[argument]
106     return cmd_args
107 
108 
109 async def run_main():
110     """Run server async."""
111     cmd_args = get_commandline()
112     cmd_args["http_port"] = 8081
113     cmd_args["json_file"] = "./pymodbus/server/simulator/setup.json"
114     task = ModbusSimulatorServer(**cmd_args)
115     await task.run_forever()
116 
117 
118 def main():
119     """Run server."""
120     asyncio.run(run_main(), debug=True)
121 
122 
123 if __name__ == "__main__":
124     main()
125
```
--- END FILES ---

Please first localize the bug based on the issue statement, and then generate a patch according to the `git diff` format fenced by three backticks.

Here is an example:

```diff
diff --git a/examples/server_async.py b/examples/server_async.py
--- a/examples/server_async.py
+++ b/examples/server_async.py
@@ -313,4 +313,4 @@
 
 
 if __name__ == "__main__":
-    asyncio.run(run_async_server("."), debug=True)
+    asyncio.run(run_async_server(), debug=True)
diff --git a/examples/server_sync.py b/examples/server_sync.py
--- a/examples/server_sync.py
+++ b/examples/server_sync.py
@@ -313,5 +313,5 @@
 
 
 if __name__ == "__main__":
-    server = run_sync_server(".")
+    server = run_sync_server()
     server.shutdown()

```

diff --git a/pymodbus/server/simulator/main.py b/pymodbus/server/simulator/main.py
--- a/pymodbus/server/simulator/main.py
+++ b/pymodbus/server/simulator/main.py
@@ -66,6 +66,7 @@
         "--http_host",
         help="use <http_host> as host to bind http listen",
         type=str,
+        default=8081,
     )
     parser.add_argument(
         "--http_port",
@@ -83,6 +84,7 @@
         "--json_file",
         help='name of json file, default is "setup.json"',
         type=str,
+        default="./pymodbus/server/simulator/setup.json",
     )
     parser.add_argument(
         "--log_file",
@@ -109,8 +111,6 @@
 async def run_main():
     """Run server async."""
     cmd_args = get_commandline()
-    cmd_args["http_port"] = 8081
-    cmd_args["json_file"] = "./pymodbus/server/simulator/setup.json"
     task = ModbusSimulatorServer(**cmd_args)
     await task.run_forever()

{"golden_diff": "diff --git a/pymodbus/server/simulator/main.py b/pymodbus/server/simulator/main.py\n--- a/pymodbus/server/simulator/main.py\n+++ b/pymodbus/server/simulator/main.py\n@@ -66,6 +66,7 @@\n         \"--http_host\",\n         help=\"use <http_host> as host to bind http listen\",\n         type=str,\n+        default=8081,\n     )\n     parser.add_argument(\n         \"--http_port\",\n@@ -83,6 +84,7 @@\n         \"--json_file\",\n         help='name of json file, default is \"setup.json\"',\n         type=str,\n+        default=\"./pymodbus/server/simulator/setup.json\",\n     )\n     parser.add_argument(\n         \"--log_file\",\n@@ -109,8 +111,6 @@\n async def run_main():\n     \"\"\"Run server async.\"\"\"\n     cmd_args = get_commandline()\n-    cmd_args[\"http_port\"] = 8081\n-    cmd_args[\"json_file\"] = \"./pymodbus/server/simulator/setup.json\"\n     task = ModbusSimulatorServer(**cmd_args)\n     await task.run_forever()\n", "issue": "pymodbus.simulator ignores command line arguments \"http_port\" and \"json_file\"\n### Versions\r\n\r\n- Python: 3.10.10\r\n- OS: Fedora 36\r\n- Pymodbus: 3.2.2\r\n\r\n### Pymodbus Specific\r\n\r\n- Server: tcp\r\n- Client: tcp\r\n\r\n### Description\r\n\r\n- when starting pymodbus.simulator with a specific json file, an error stating a different filename is shown\r\n```\r\n$ pymodbus.simulator --json_file /tmp/setup.json \r\n2023-03-25 20:06:03,532 INFO  logging:96 Start simulator\r\nTraceback (most recent call last):\r\n  File \"/usr/bin/pymodbus.simulator\", line 8, in <module>\r\n    sys.exit(main())\r\n  File \"/usr/lib/python3.10/site-packages/pymodbus/server/simulator/main.py\", line 119, in main\r\n    asyncio.run(run_main(), debug=True)\r\n  File \"/usr/lib64/python3.10/asyncio/runners.py\", line 44, in run\r\n    return loop.run_until_complete(main)\r\n  File \"/usr/lib64/python3.10/asyncio/base_events.py\", line 649, in run_until_complete\r\n    return future.result()\r\n  File \"/usr/lib/python3.10/site-packages/pymodbus/server/simulator/main.py\", line 113, in run_main\r\n    task = ModbusSimulatorServer(**cmd_args)\r\n  File \"/usr/lib/python3.10/site-packages/pymodbus/server/simulator/http_server.py\", line 130, in __init__\r\n    with open(json_file, encoding=\"utf-8\") as file:\r\nFileNotFoundError: [Errno 2] No such file or directory: './pymodbus/server/simulator/setup.json'\r\n```\r\n- the problem is in https://github.com/pymodbus-dev/pymodbus/blob/c2db53cad3c60834bffecd23db699f6982f914fb/pymodbus/server/simulator/main.py#L113 where the command line arguments are overwritten\r\n- if it is the intention having default values, a patch keeping exactly these defaults would look like this:\r\n```\r\ndiff --git a/pymodbus/server/simulator/main.py b/pymodbus/server/simulator/main.py\r\nindex 09af492..443e1a6 100755\r\n--- a/pymodbus/server/simulator/main.py\r\n+++ b/pymodbus/server/simulator/main.py\r\n@@ -70,6 +70,7 @@ def get_commandline():\r\n     parser.add_argument(\r\n         \"--http_port\",\r\n         help=\"use <http_port> as port to bind http listen\",\r\n+        default=8081,\r\n         type=str,\r\n     )\r\n     parser.add_argument(\r\n@@ -82,6 +83,7 @@ def get_commandline():\r\n     parser.add_argument(\r\n         \"--json_file\",\r\n         help='name of json file, default is \"setup.json\"',\r\n+        default=\"./pymodbus/server/simulator/setup.json\",\r\n         type=str,\r\n     )\r\n     parser.add_argument(\r\n@@ -109,8 +111,6 @@ def get_commandline():\r\n async def run_main():\r\n     \"\"\"Run server async.\"\"\"\r\n     cmd_args = get_commandline()\r\n-    cmd_args[\"http_port\"] = 8081\r\n-    cmd_args[\"json_file\"] = \"./pymodbus/server/simulator/setup.json\"\r\n     task = ModbusSimulatorServer(**cmd_args)\r\n     await task.run_forever()\r\n ```\r\n- however, for running pymodbus.simulator after installing without any arguments, I would suggest the following:\r\n  - install the default setup.json e.g. into the same directory as main.py of the simulator\r\n  - use a diff like this:\r\n```\r\ndiff --git a/pymodbus/server/simulator/main.py b/pymodbus/server/simulator/main.py\r\nindex 09af492..086d724 100755\r\n--- a/pymodbus/server/simulator/main.py\r\n+++ b/pymodbus/server/simulator/main.py\r\n@@ -41,6 +41,7 @@ options:\r\n \"\"\"\r\n import argparse\r\n import asyncio\r\n+import os\r\n \r\n from pymodbus import pymodbus_apply_logging_config\r\n from pymodbus.logging import Log\r\n@@ -70,6 +71,7 @@ def get_commandline():\r\n     parser.add_argument(\r\n         \"--http_port\",\r\n         help=\"use <http_port> as port to bind http listen\",\r\n+        default=8081,\r\n         type=str,\r\n     )\r\n     parser.add_argument(\r\n@@ -82,6 +84,7 @@ def get_commandline():\r\n     parser.add_argument(\r\n         \"--json_file\",\r\n         help='name of json file, default is \"setup.json\"',\r\n+        default=os.path.join(os.path.dirname(__file__), \"setup.json\"),\r\n         type=str,\r\n     )\r\n     parser.add_argument(\r\n@@ -109,8 +112,6 @@ def get_commandline():\r\n async def run_main():\r\n     \"\"\"Run server async.\"\"\"\r\n     cmd_args = get_commandline()\r\n-    cmd_args[\"http_port\"] = 8081\r\n-    cmd_args[\"json_file\"] = \"./pymodbus/server/simulator/setup.json\"\r\n     task = ModbusSimulatorServer(**cmd_args)\r\n     await task.run_forever()\r\n \r\n```\r\n- please provide some guidance which way to go, then I'll create an according pull request\n", "before_files": [{"content": "#!/usr/bin/env python3\n\"\"\"HTTP server for modbus simulator.\n\nThe modbus simulator contain 3 distint parts:\n\n- Datastore simulator, to define registers and their behaviour including actions: (simulator)(../../datastore/simulator.py)\n- Modbus server: (server)(./http_server.py)\n- HTTP server with REST API and web pages providing an online console in your browser\n\nMultiple setups for different server types and/or devices are prepared in a (json file)(./setup.json), the detailed configuration is explained in (doc)(README.md)\n\nThe command line parameters are kept to a minimum:\n\nusage: main.py [-h] [--modbus_server MODBUS_SERVER]\n               [--modbus_device MODBUS_DEVICE] [--http_host HTTP_HOST]\n               [--http_port HTTP_PORT]\n               [--log {critical,error,warning,info,debug}]\n               [--json_file JSON_FILE]\n               [--custom_actions_module CUSTOM_ACTIONS_MODULE]\n\nModbus server with REST-API and web server\n\noptions:\n  -h, --help            show this help message and exit\n  --modbus_server MODBUS_SERVER\n                        use <modbus_server> from server_list in json file\n  --modbus_device MODBUS_DEVICE\n                        use <modbus_device> from device_list in json file\n  --http_host HTTP_HOST\n                        use <http_host> as host to bind http listen\n  --http_port HTTP_PORT\n                        use <http_port> as port to bind http listen\n  --log {critical,error,warning,info,debug}\n                        set log level, default is info\n  --log_file LOG_FILE\n                        name of server log file, default is \"server.log\"\n  --json_file JSON_FILE\n                        name of json_file, default is \"setup.json\"\n  --custom_actions_module CUSTOM_ACTIONS_MODULE\n                        python file with custom actions, default is none\n\"\"\"\nimport argparse\nimport asyncio\n\nfrom pymodbus import pymodbus_apply_logging_config\nfrom pymodbus.logging import Log\nfrom pymodbus.server.simulator.http_server import ModbusSimulatorServer\n\n\ndef get_commandline():\n    \"\"\"Get command line arguments.\"\"\"\n    parser = argparse.ArgumentParser(\n        description=\"Modbus server with REST-API and web server\"\n    )\n    parser.add_argument(\n        \"--modbus_server\",\n        help=\"use <modbus_server> from server_list in json file\",\n        type=str,\n    )\n    parser.add_argument(\n        \"--modbus_device\",\n        help=\"use <modbus_device> from device_list in json file\",\n        type=str,\n    )\n    parser.add_argument(\n        \"--http_host\",\n        help=\"use <http_host> as host to bind http listen\",\n        type=str,\n    )\n    parser.add_argument(\n        \"--http_port\",\n        help=\"use <http_port> as port to bind http listen\",\n        type=str,\n    )\n    parser.add_argument(\n        \"--log\",\n        choices=[\"critical\", \"error\", \"warning\", \"info\", \"debug\"],\n        help=\"set log level, default is info\",\n        default=\"info\",\n        type=str,\n    )\n    parser.add_argument(\n        \"--json_file\",\n        help='name of json file, default is \"setup.json\"',\n        type=str,\n    )\n    parser.add_argument(\n        \"--log_file\",\n        help='name of server log file, default is \"server.log\"',\n        type=str,\n    )\n    parser.add_argument(\n        \"--custom_actions_module\",\n        help=\"python file with custom actions, default is none\",\n        type=str,\n    )\n    args = parser.parse_args()\n    pymodbus_apply_logging_config(args.log.upper())\n    Log.info(\"Start simulator\")\n    cmd_args = {}\n    for argument in args.__dict__:\n        if argument == \"log\":\n            continue\n        if args.__dict__[argument] is not None:\n            cmd_args[argument] = args.__dict__[argument]\n    return cmd_args\n\n\nasync def run_main():\n    \"\"\"Run server async.\"\"\"\n    cmd_args = get_commandline()\n    cmd_args[\"http_port\"] = 8081\n    cmd_args[\"json_file\"] = \"./pymodbus/server/simulator/setup.json\"\n    task = ModbusSimulatorServer(**cmd_args)\n    await task.run_forever()\n\n\ndef main():\n    \"\"\"Run server.\"\"\"\n    asyncio.run(run_main(), debug=True)\n\n\nif __name__ == \"__main__\":\n    main()\n", "path": "pymodbus/server/simulator/main.py"}], "after_files": [{"content": "#!/usr/bin/env python3\n\"\"\"HTTP server for modbus simulator.\n\nThe modbus simulator contain 3 distint parts:\n\n- Datastore simulator, to define registers and their behaviour including actions: (simulator)(../../datastore/simulator.py)\n- Modbus server: (server)(./http_server.py)\n- HTTP server with REST API and web pages providing an online console in your browser\n\nMultiple setups for different server types and/or devices are prepared in a (json file)(./setup.json), the detailed configuration is explained in (doc)(README.md)\n\nThe command line parameters are kept to a minimum:\n\nusage: main.py [-h] [--modbus_server MODBUS_SERVER]\n               [--modbus_device MODBUS_DEVICE] [--http_host HTTP_HOST]\n               [--http_port HTTP_PORT]\n               [--log {critical,error,warning,info,debug}]\n               [--json_file JSON_FILE]\n               [--custom_actions_module CUSTOM_ACTIONS_MODULE]\n\nModbus server with REST-API and web server\n\noptions:\n  -h, --help            show this help message and exit\n  --modbus_server MODBUS_SERVER\n                        use <modbus_server> from server_list in json file\n  --modbus_device MODBUS_DEVICE\n                        use <modbus_device> from device_list in json file\n  --http_host HTTP_HOST\n                        use <http_host> as host to bind http listen\n  --http_port HTTP_PORT\n                        use <http_port> as port to bind http listen\n  --log {critical,error,warning,info,debug}\n                        set log level, default is info\n  --log_file LOG_FILE\n                        name of server log file, default is \"server.log\"\n  --json_file JSON_FILE\n                        name of json_file, default is \"setup.json\"\n  --custom_actions_module CUSTOM_ACTIONS_MODULE\n                        python file with custom actions, default is none\n\"\"\"\nimport argparse\nimport asyncio\n\nfrom pymodbus import pymodbus_apply_logging_config\nfrom pymodbus.logging import Log\nfrom pymodbus.server.simulator.http_server import ModbusSimulatorServer\n\n\ndef get_commandline():\n    \"\"\"Get command line arguments.\"\"\"\n    parser = argparse.ArgumentParser(\n        description=\"Modbus server with REST-API and web server\"\n    )\n    parser.add_argument(\n        \"--modbus_server\",\n        help=\"use <modbus_server> from server_list in json file\",\n        type=str,\n    )\n    parser.add_argument(\n        \"--modbus_device\",\n        help=\"use <modbus_device> from device_list in json file\",\n        type=str,\n    )\n    parser.add_argument(\n        \"--http_host\",\n        help=\"use <http_host> as host to bind http listen\",\n        type=str,\n        default=8081,\n    )\n    parser.add_argument(\n        \"--http_port\",\n        help=\"use <http_port> as port to bind http listen\",\n        type=str,\n    )\n    parser.add_argument(\n        \"--log\",\n        choices=[\"critical\", \"error\", \"warning\", \"info\", \"debug\"],\n        help=\"set log level, default is info\",\n        default=\"info\",\n        type=str,\n    )\n    parser.add_argument(\n        \"--json_file\",\n        help='name of json file, default is \"setup.json\"',\n        type=str,\n        default=\"./pymodbus/server/simulator/setup.json\",\n    )\n    parser.add_argument(\n        \"--log_file\",\n        help='name of server log file, default is \"server.log\"',\n        type=str,\n    )\n    parser.add_argument(\n        \"--custom_actions_module\",\n        help=\"python file with custom actions, default is none\",\n        type=str,\n    )\n    args = parser.parse_args()\n    pymodbus_apply_logging_config(args.log.upper())\n    Log.info(\"Start simulator\")\n    cmd_args = {}\n    for argument in args.__dict__:\n        if argument == \"log\":\n            continue\n        if args.__dict__[argument] is not None:\n            cmd_args[argument] = args.__dict__[argument]\n    return cmd_args\n\n\nasync def run_main():\n    \"\"\"Run server async.\"\"\"\n    cmd_args = get_commandline()\n    task = ModbusSimulatorServer(**cmd_args)\n    await task.run_forever()\n\n\ndef main():\n    \"\"\"Run server.\"\"\"\n    asyncio.run(run_main(), debug=True)\n\n\nif __name__ == \"__main__\":\n    main()\n", "path": "pymodbus/server/simulator/main.py"}]}