~mapclient.devs/mapclient/stable

« back to all changes in this revision

Viewing changes to plugins/imagesourcestep/__init__.py

  • Committer: musculoskeletal
  • Date: 2014-06-25 05:38:05 UTC
  • mfrom: (1.6.35 testing)
  • Revision ID: musculoskeletal@bioeng1033-20140625053805-jkqhi5oq74vmlntl
Merging testing into stable.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
'''
2
 
MAP Client, a program to generate detailed musculoskeletal models for OpenSim.
3
 
    Copyright (C) 2012  University of Auckland
4
 
    
5
 
This file is part of MAP Client. (http://launchpad.net/mapclient)
6
 
 
7
 
    MAP Client is free software: you can redistribute it and/or modify
8
 
    it under the terms of the GNU General Public License as published by
9
 
    the Free Software Foundation, either version 3 of the License, or
10
 
    (at your option) any later version.
11
 
 
12
 
    MAP Client is distributed in the hope that it will be useful,
13
 
    but WITHOUT ANY WARRANTY; without even the implied warranty of
14
 
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
15
 
    GNU General Public License for more details.
16
 
 
17
 
    You should have received a copy of the GNU General Public License
18
 
    along with MAP Client.  If not, see <http://www.gnu.org/licenses/>..
19
 
'''
20
 
__version__ = '0.2.0'
21
 
__author__ = 'Hugh Sorby'
22
 
 
23
 
import os, sys
24
 
 
25
 
current_dir = os.path.dirname(os.path.abspath(__file__))
26
 
if current_dir not in sys.path:
27
 
    # Using __file__ will not work if py2exe is used,
28
 
    # Possible problem of OSX10.6 also.
29
 
    sys.path.insert(0, current_dir)
30
 
 
31
 
from imagesourcestep import step
32
 
from imagesourcestep.widgets import resources_rc
33
 
 
34
 
( _, tail ) = os.path.split(current_dir)
35
 
print("Plugin '{0}' version {1} by {2} loaded".format(tail, __version__, __author__))
36