Skip to content
This repository was archived by the owner on Apr 26, 2024. It is now read-only.

Commit 20e3172

Browse files
committed
Merge pull request #75 from matrix-org/dont_write_bytecode
Don't write bytecode
2 parents c37e7e1 + ea1d6c1 commit 20e3172

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

synapse/app/homeserver.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,9 @@
1414
# See the License for the specific language governing permissions and
1515
# limitations under the License.
1616

17+
import sys
18+
sys.dont_write_bytecode = True
19+
1720
from synapse.storage import prepare_database, UpgradeDatabaseException
1821

1922
from synapse.server import HomeServer
@@ -48,7 +51,6 @@
4851
import logging
4952
import os
5053
import re
51-
import sys
5254
import sqlite3
5355
import syweb
5456

synapse/app/synctl.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
import subprocess
2020
import signal
2121

22-
SYNAPSE = ["python", "-m", "synapse.app.homeserver"]
22+
SYNAPSE = ["python", "-B", "-m", "synapse.app.homeserver"]
2323

2424
CONFIGFILE = "homeserver.yaml"
2525
PIDFILE = "homeserver.pid"

0 commit comments

Comments
 (0)