# to use, copy, modify, and distribute this software is granted under
# terms provided in the LICENSE file distributed with this software.
# to use, copy, modify, and distribute this software is granted under
# terms provided in the LICENSE file distributed with this software.
self.universe.private_files.append(item)
for section in self.data.sections():
if section != "__control__":
self.universe.private_files.append(item)
for section in self.data.sections():
if section != "__control__":
for include_file in includes:
if not os.path.isabs(include_file):
include_file = find_file(
for include_file in includes:
if not os.path.isabs(include_file):
include_file = find_file(
# if there's only one file loaded, try to work around a chicken<egg
elif hasattr(universe, "files") and len(
universe.files
# if there's only one file loaded, try to work around a chicken<egg
elif hasattr(universe, "files") and len(
universe.files
- ) == 1 and not universe.files[universe.files.keys()[0]].is_writeable():
- data_file = universe.files[universe.files.keys()[0]].data
+ ) == 1 and not universe.files[
+ list(universe.files.keys())[0]].is_writeable():
+ data_file = universe.files[list(universe.files.keys())[0]].data