- hostname = platform.node()
- if '.house' in hostname:
- location = 'CABIN'
- elif '.cabin' in hostname:
- location = 'HOUSE'
+ """
+ Returns the location where this program is _NOT_ running.
+
+ >>> x = other_location()
+ >>> x in set(['HOUSE', 'CABIN'])
+ True
+
+ >>> y = this_location()
+ >>> x == y
+ False
+
+ """
+ this = this_location()
+ if this == 'HOUSE':
+ return 'CABIN'
+ elif this == 'CABIN':
+ return 'HOUSE'