Files
gnatdashboard/webui/create_webui_thirdparty.py
Lespinasse cdc6b1fccb WebUI: update creation of thirdparty
- Added hour to have unique tar.gz name

Change-Id: Ida7280a144866e4fa1954b71b4108bd9334e07c2
For: T123-010
2020-01-23 17:20:00 +01:00

14 lines
354 B
Python
Executable File

#!/usr/bin/env python
import time
from subprocess import call
DATETIME = time.strftime('%Y-%m-%d-%H-%M-%S')
NODE_MODULE_PATH = './node_modules/'
TAR_NAME = 'webui_node_modules_' + DATETIME + '.tar.gz '
TAR_CMD = "tar -zcf " + TAR_NAME + NODE_MODULE_PATH
print "Executing : " + TAR_CMD
print "Can take a little bit of time..."
call(TAR_CMD.split(' '))