Permalink
Browse files

try both options for nixops path

  • Loading branch information...
1 parent acb00a4 commit ff26bb9c421c505b5cb7b1ae1b1b8a446abc0a9a @coreyoconnor coreyoconnor committed Feb 26, 2014
Showing with 2 additions and 0 deletions.
  1. +2 −0 nixops/deployment.py
View
2 nixops/deployment.py
@@ -72,6 +72,8 @@ def __init__(self, statefile, uuid, log_file=sys.stderr):
self.expr_path = os.path.realpath(os.path.dirname(__file__) + "/../../../../share/nix/nixops")
if not os.path.exists(self.expr_path):
+ self.expr_path = os.path.realpath(os.path.dirname(__file__) + "/../../../../../share/nix/nixops")
+ if not os.path.exists(self.expr_path):
self.expr_path = os.path.dirname(__file__) + "/../nix"
self.tempdir = nixops.util.SelfDeletingDir(tempfile.mkdtemp(prefix="nixops-tmp"))

0 comments on commit ff26bb9

Please sign in to comment.