projects
/
living-lab-site.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Merge branch 'master' of koala.cs.pub.ro:living-lab-site
[living-lab-site.git]
/
cis
/
cis_util.py
1
#!/usr/bin/env python
2
3
"""
4
Useful functions for CIS.
5
"""
6
7
def get_name(file_name):
8
if file_name.find('/') is not -1:
9
name = file_name[(file_name.rindex('/')+1):]
10
else:
11
name = file_name
12
if name.find('.') is not -1:
13
name = name[:name.rindex('.')]
14
15
return name