Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

18 lines (13 sloc) 0.44 kb
import os, glob
from config import Config
from version import __version__, in_source_tree, top_dir
data_dir = os.path.realpath(top_dir)
base_dir = os.path.dirname(__file__)
def get_paths(pattern):
"""
Get files/paths matching the given pattern in the sfepy source tree.
"""
if not in_source_tree:
pattern = '../' + pattern
files = glob.glob(os.path.normpath(os.path.join(top_dir, pattern)))
return files
Jump to Line
Something went wrong with that request. Please try again.