MAGIKS  1.1
Manipulator General Inverse Kinematic Solver
 All Classes Namespaces Files Functions Variables Pages
magiks/specific_geometries/pr2/__init__.py
Go to the documentation of this file.
1 
2 def set_file_path( verbose=False ):
3  '''
4  execute the set_file_path function of the super package.
5  -> an absolute path has to be set only at root level of packages.
6  '''
7  import os
8  import sys
9 
10  file_path = os.path.abspath( os.path.dirname( __file__ ) )
11  super_path = os.path.abspath( os.path.join( file_path, '../..' ))
12 
13  if verbose :
14  print
15  print file_path
16  print super_path
17  print
18 
19  sys.path.append( super_path )
20 
21  # super package :
22  import specific_geometries
23  return specific_geometries.set_file_path( verbose=verbose )