src/hg-ssh
changeset 165 3606d60b07e5
parent 117 b6b8a5daf0f4
child 211 0cd59649772c
--- a/src/hg-ssh	Fri Oct 30 16:55:07 2009 +0000
+++ b/src/hg-ssh	Mon Nov 09 12:15:09 2009 +0000
@@ -84,13 +84,11 @@
 # Use a different hgrc for remote pulls - this way you can set
 # up access.py for everything at once without affecting local operations
 
-os.environ['HGRCPATH'] = paths.getEtcPath() + "/remote-hgrc"
-
-os.chdir('repos')
+os.environ['HGRCPATH'] = paths.getHgrcPaths()
 
-for f in [
-    paths.getEtcPath() + "/access.conf", 
-    os.getcwd() + "/hgadmin/access.conf"]:
+os.chdir(paths.getReposPath())
+
+for f in paths.getAccessPaths():
     if os.path.isfile(f):
         ruleset.rules.readfile(f)