def get_repo_url(force_github=False):
 sourcepath = os.path.realpath(os.path.join(os.path.dirname(nipype.__file__), os.path.pardir))
 gitpathgit = os.path.join(sourcepath, u'.git')
 if ((not os.path.exists(gitpathgit)) and (not force_github)):
  uri = (u'file://%s' % sourcepath)
 else:
  uri = u'http://github.com/nipy/nipype/blob/master'
 return uri

def get_repo_url ( force_github = False ) : sourcepath = os . path . realpath ( os . path . join ( os . path . dirname ( nipype . __file__ ) , os . path . pardir ) ) gitpathgit = os . path . join ( sourcepath , u'.git' ) if ( ( not os . path . exists ( gitpathgit ) ) and ( not force_github ) ) : uri = ( u'file://%s' % sourcepath ) else : uri = u'http://github.com/nipy/nipype/blob/master' return uri
returns github url or local url returns uri: str filesystem path or github repo url .