summaryrefslogtreecommitdiff
path: root/kpov_judge/tasks
diff options
context:
space:
mode:
authorsv1004@student.uni-lj.si <sv1004@student.uni-lj.si@5cf9fbd1-b2bc-434c-b4b7-e852f4f63414>2015-01-22 22:00:54 +0000
committersv1004@student.uni-lj.si <sv1004@student.uni-lj.si@5cf9fbd1-b2bc-434c-b4b7-e852f4f63414>2015-01-22 22:00:54 +0000
commit962c6ffba847a10932457609ff5c40cd6423d770 (patch)
tree988c8435690de0fb5d9d92da34ddab2eb09073f9 /kpov_judge/tasks
parent50879431538b665177871ae5d44609997e017d17 (diff)
se nekaj v task() rename 20 files
git-svn-id: https://svn.lusy.fri.uni-lj.si/kpov-public-svn/kpov-public@225 5cf9fbd1-b2bc-434c-b4b7-e852f4f63414
Diffstat (limited to 'kpov_judge/tasks')
-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