mirror of
https://github.com/kmc7468/cs420.git
synced 2025-12-15 06:58:50 +00:00
Update homework 1 and 2
This commit is contained in:
3
scripts/copy-to-kecc-public.sh
Executable file
3
scripts/copy-to-kecc-public.sh
Executable file
@@ -0,0 +1,3 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
rsync --exclude=".git" --delete --archive ./ ../kecc-public
|
||||
@@ -11,8 +11,9 @@ import sys
|
||||
import re
|
||||
|
||||
if __name__ == "__main__":
|
||||
for fullname in os.listdir("src"):
|
||||
(filename, ext) = os.path.splitext(fullname)
|
||||
for root, dir, files in os.walk("src"):
|
||||
for f in files:
|
||||
(filename, ext) = os.path.splitext(f)
|
||||
|
||||
if ext == ".public":
|
||||
os.rename(os.path.join("src", fullname), os.path.join("src", filename))
|
||||
if ext == ".public":
|
||||
os.rename(os.path.join(root, f), os.path.join(root, filename))
|
||||
|
||||
Reference in New Issue
Block a user