summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--kpov_judge/tasks/copy_rename_20_files_tail_env/task.py18
1 files changed, 15 insertions, 3 deletions
diff --git a/kpov_judge/tasks/copy_rename_20_files_tail_env/task.py b/kpov_judge/tasks/copy_rename_20_files_tail_env/task.py
index c2f4c87..dc2e0da 100644
--- a/kpov_judge/tasks/copy_rename_20_files_tail_env/task.py
+++ b/kpov_judge/tasks/copy_rename_20_files_tail_env/task.py
@@ -78,15 +78,27 @@ params_meta = {
def task():
# TODO: (polz) this has to be changed! Get a move on!
- # Z primozem lavricem sva skusala narediti, ne znava pa vsega (ostali pa se itak ne oglasajo)
+ # Z primozem lavricem sva skusala nekaj narediti (ostali pa se itak ne oglasajo)
# Ker gen params ni narejen, sklepam da je "Mapa" na namizju,
# imena datotek pa so: 1,1-,2,2-,3,3-,4,5,6,7,8,9,.mama1,mama2,mama3,mama4,mama5,mojimenik,novi,oce1
# v mojimenik se nahaja mojimenikfile
-
+ # mama2 vsebuje "mama"
+
import subprocess
results = dict()
- p=subprocess.check_output(["ls","-a", "/root/Desktop/Mapa"])
+ p=subprocess.check_output(["ls","-a", "/home/student/Desktop/Mapa"])
results['preimenuj'] = p
+
+ # ta more met mojimenikfile
+ results['novi'] = subprocess.check_output(["ls", "/home/student/Desktop/Mapa/novi"])
+ # ta more bit prazen
+ results['mojimenik']=subprocess.check_output(["ls", "/home/student/Desktop/Mapa/mojimenik"])
+
+ # ta more met mama2
+ results['mamatxt']=subprocess.check_output(["cat", "/home/student/Desktop/mama.txt"])
+ # ta pa grep: mojimenik: Is a directory, grep: novi: Is a directory
+ results['napaketxt']=subprocess.check_output(["cat", "/home/student/Desktop/napake.txt"])
+
return results