tests + profile.py
This commit is contained in:
parent
3ab7794d17
commit
14dd46b716
6 changed files with 78 additions and 22 deletions
|
|
@ -0,0 +1,23 @@
|
|||
from settings import Settings
|
||||
import os
|
||||
|
||||
|
||||
class Profile(object):
|
||||
|
||||
@staticmethod
|
||||
def find_profiles():
|
||||
path = Settings.get_default_path()
|
||||
result = []
|
||||
# check default path
|
||||
for fl in os.listdir(path):
|
||||
if fl.endswith(".tox"):
|
||||
name = fl[:-4]
|
||||
result.append((path, name))
|
||||
path = os.path.dirname(os.path.abspath(__file__))
|
||||
# check current directory
|
||||
for fl in os.listdir(path):
|
||||
if fl.endswith(".tox"):
|
||||
name = fl[:-4]
|
||||
result.append((path, name))
|
||||
return result
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue