summaryrefslogtreecommitdiffstats
path: root/build/scripts/make_java_classpath_file.py
diff options
context:
space:
mode:
authorheretic <[email protected]>2022-02-10 16:45:43 +0300
committerDaniil Cherednik <[email protected]>2022-02-10 16:45:43 +0300
commit397cbe258b9e064f49c4ca575279f02f39fef76e (patch)
treea0b0eb3cca6a14e4e8ea715393637672fa651284 /build/scripts/make_java_classpath_file.py
parent43f5a35593ebc9f6bcea619bb170394ea7ae468e (diff)
Restoring authorship annotation for <[email protected]>. Commit 1 of 2.
Diffstat (limited to 'build/scripts/make_java_classpath_file.py')
-rw-r--r--build/scripts/make_java_classpath_file.py28
1 files changed, 14 insertions, 14 deletions
diff --git a/build/scripts/make_java_classpath_file.py b/build/scripts/make_java_classpath_file.py
index c70a7876d73..9b4eab51507 100644
--- a/build/scripts/make_java_classpath_file.py
+++ b/build/scripts/make_java_classpath_file.py
@@ -1,24 +1,24 @@
-import os
-import sys
-
+import os
+import sys
+
import process_command_files as pcf
+
-
-def make_cp_file(args):
- source = args[0]
- destination = args[1]
- with open(source) as src:
- lines = [l.strip() for l in src if l.strip()]
- with open(destination, 'w') as dst:
- dst.write(os.pathsep.join(lines))
-
+def make_cp_file(args):
+ source = args[0]
+ destination = args[1]
+ with open(source) as src:
+ lines = [l.strip() for l in src if l.strip()]
+ with open(destination, 'w') as dst:
+ dst.write(os.pathsep.join(lines))
+
def make_cp_file_from_args(args):
destination = args[0]
with open(destination, 'w') as dst:
dst.write(os.pathsep.join(args[1:]))
+
-
-if __name__ == '__main__':
+if __name__ == '__main__':
args = pcf.get_args(sys.argv[1:])
if sys.argv[1] != '--from-args':
make_cp_file(args)