src/hg-ssh
branchdebian
changeset 172 5dd3698fad54
parent 165 3606d60b07e5
child 211 0cd59649772c
--- a/src/hg-ssh	Tue Oct 13 18:32:26 2009 +0100
+++ b/src/hg-ssh	Mon Nov 09 16:23:04 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)