Source

pypi / sshkeys_update.py

Diff from to

File sshkeys_update.py

 #!/usr/bin/python
+import os, sys
+
+prefix = os.path.dirname(__file__)
+sys.path.insert(0, prefix)
+
+CONFIG_FILE = os.environ.get("PYPI_CONFIG", os.path.join(prefix, 'config.ini'))
+
 import config, store, os
 standalone_py = os.path.join(os.path.dirname(__file__), 'standalone.py')
-c = config.Config("/data/pypi/config.ini")
+c = config.Config(CONFIG_FILE)
 s = store.Store(c)
 cursor = s.get_cursor()
 cursor.execute("lock table sshkeys in exclusive mode") # to prevent simultaneous updates