def __repr__(self):
return "<%s%s %s>" % (self.output, (" %s..%s" % (self.edid[:5], self.edid[-5:])) if self.edid else "", " ".join(self.option_vector))
def __repr__(self):
return "<%s%s %s>" % (self.output, (" %s..%s" % (self.edid[:5], self.edid[-5:])) if self.edid else "", " ".join(self.option_vector))
else:
for profile_name in profiles.keys():
if profile_blocked(os.path.join(profile_path, profile_name)):
else:
for profile_name in profiles.keys():
if profile_blocked(os.path.join(profile_path, profile_name)):
print("Failed to load profile '%s':\nProfile not found" % load_profile, file=sys.stderr)
sys.exit(1)
add_unused_outputs(config, profile)
print("Failed to load profile '%s':\nProfile not found" % load_profile, file=sys.stderr)
sys.exit(1)
add_unused_outputs(config, profile)
- if profile == config and not "-f" in options and not "--force" in options:
- print("Config already loaded")
+ if profile == dict(config) and not "-f" in options and not "--force" in options:
+ print("Config already loaded", file=sys.stderr)