diff options
author | Dat Nguyen <nguy2854@umn.edu> | 2019-11-21 14:16:52 -0600 |
---|---|---|
committer | Dat Nguyen <nguy2854@umn.edu> | 2019-11-21 14:16:52 -0600 |
commit | d126a9ea02c1edceff30efa6fe0e061c2c19062a (patch) | |
tree | 41111d48b7193428c1307d8a956a7cf2be2d7459 /Web/PI/Uploads | |
parent | removed unnecessary (diff) | |
download | ee4511w-d126a9ea02c1edceff30efa6fe0e061c2c19062a.tar ee4511w-d126a9ea02c1edceff30efa6fe0e061c2c19062a.tar.gz ee4511w-d126a9ea02c1edceff30efa6fe0e061c2c19062a.tar.bz2 ee4511w-d126a9ea02c1edceff30efa6fe0e061c2c19062a.tar.lz ee4511w-d126a9ea02c1edceff30efa6fe0e061c2c19062a.tar.xz ee4511w-d126a9ea02c1edceff30efa6fe0e061c2c19062a.tar.zst ee4511w-d126a9ea02c1edceff30efa6fe0e061c2c19062a.zip |
tabs to spaces smh
Diffstat (limited to 'Web/PI/Uploads')
-rw-r--r-- | Web/PI/Uploads/test.py | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/Web/PI/Uploads/test.py b/Web/PI/Uploads/test.py new file mode 100644 index 0000000..5091e89 --- /dev/null +++ b/Web/PI/Uploads/test.py @@ -0,0 +1,17 @@ +import time, os, sys
+from datetime import datetime
+
+file_name = os.path.basename(sys.argv[0])
+
+file_name = file_name.split(".")[0]
+
+now = datetime.now()
+current_time = now.strftime("%H:%M:%S")
+print("Current Time = " + current_time)
+
+f = open("Results/" + file_name + "_results", "w+")
+f.write("THIS IS RESULTS TEXT\n")
+f.write("Current Time = " + current_time)
+f.close()
+print("Running test.py for ~ 5 seconds.")
+time.sleep(5)
|