MVP with Tensorboard
This commit is contained in:
parent
5b9b51ad59
commit
a0d089d5bb
549 changed files with 39977 additions and 31449 deletions
22
web_p/get_interfaces_mock.py
Normal file
22
web_p/get_interfaces_mock.py
Normal file
|
@ -0,0 +1,22 @@
|
|||
import shutil
|
||||
import argparse
|
||||
import os.path
|
||||
|
||||
parser = argparse.ArgumentParser()
|
||||
parser.add_argument("--path")
|
||||
args = parser.parse_args()
|
||||
|
||||
|
||||
def copy_and_move_folder(src, dst):
|
||||
try:
|
||||
if os.path.exists(dst):
|
||||
shutil.rmtree(dst)
|
||||
shutil.copytree(src, dst)
|
||||
print(f"Folder {src} successfully copied")
|
||||
except shutil.Error as e:
|
||||
print(f"Error: {e}")
|
||||
|
||||
|
||||
source_folder = os.path.dirname(os.path.abspath(__file__)) + "/interfaces/"
|
||||
|
||||
copy_and_move_folder(source_folder, args.path)
|
Loading…
Add table
Add a link
Reference in a new issue