equal
deleted
inserted
replaced
899 |
899 |
900 def gui(): |
900 def gui(): |
901 '''Are we running in a GUI?''' |
901 '''Are we running in a GUI?''' |
902 return os.name == "nt" or os.name == "mac" or os.environ.get("DISPLAY") |
902 return os.name == "nt" or os.name == "mac" or os.environ.get("DISPLAY") |
903 |
903 |
|
904 def lookup_reg(key, name=None, scope=None): |
|
905 return None |
|
906 |
904 # Platform specific variants |
907 # Platform specific variants |
905 if os.name == 'nt': |
908 if os.name == 'nt': |
906 import msvcrt |
909 import msvcrt |
907 nulldev = 'NUL:' |
910 nulldev = 'NUL:' |
908 |
911 |
1089 except ImportError: |
1092 except ImportError: |
1090 pass |
1093 pass |
1091 |
1094 |
1092 else: |
1095 else: |
1093 nulldev = '/dev/null' |
1096 nulldev = '/dev/null' |
1094 |
|
1095 def lookup_reg(key, name=None, scope=None): |
|
1096 return None |
|
1097 |
1097 |
1098 def rcfiles(path): |
1098 def rcfiles(path): |
1099 rcs = [os.path.join(path, 'hgrc')] |
1099 rcs = [os.path.join(path, 'hgrc')] |
1100 rcdir = os.path.join(path, 'hgrc.d') |
1100 rcdir = os.path.join(path, 'hgrc.d') |
1101 try: |
1101 try: |