MCPcopy Create free account
hub / github.com/KLayout/klayout / write

Method write

scripts/pyqrc.py:72–105  ·  view source on GitHub ↗
(self, file)

Source from the content-addressed store, hash-verified

70 print(f.path)
71
72 def write(self, file):
73 file.write(f"""
74/*
75
76 KLayout Layout Viewer
77 Copyright (C) 2006-2026 Matthias Koefferlein
78
79 This program is free software; you can redistribute it and/or modify
80 it under the terms of the GNU General Public License as published by
81 the Free Software Foundation; either version 2 of the License, or
82 (at your option) any later version.
83
84 This program is distributed in the hope that it will be useful,
85 but WITHOUT ANY WARRANTY; without even the implied warranty of
86 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
87 GNU General Public License for more details.
88
89 You should have received a copy of the GNU General Public License
90 along with this program; if not, write to the Free Software
91 Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
92
93*/
94
95/**
96* DO NOT EDIT THIS FILE.
97* This file has been created automatically
98*/
99
100#include "tlResources.h"
101""")
102 i = 1
103 for f in self.files:
104 f.write(file, i)
105 i += 1
106
107
108# The main code

Callers

nothing calls this directly

Calls 1

writeMethod · 0.45

Tested by

no test coverage detected