Skip to content

Commit

Permalink
reconfigure syspath/module import strategy
Browse files Browse the repository at this point in the history
  • Loading branch information
walterbender committed Dec 21, 2015
1 parent 383bbae commit fdee879
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
Empty file added lib/__init__.py
Empty file.
2 changes: 1 addition & 1 deletion myelements/elements.py
Expand Up @@ -30,7 +30,7 @@

# Load Box2D
try:
import Box2D as box2d
import lib.Box2D as box2d
except:
print 'Could not load the pybox2d library (Box2D).'
print 'Please run "setup.py install" to install the dependencies.'
Expand Down
5 changes: 3 additions & 2 deletions physics.py
Expand Up @@ -35,8 +35,9 @@
from pygame.locals import *
from pygame.color import *

sys.path.insert(0, 'lib/')
import Box2D as box2d
# from sugar3.activity import activity
# sys.path.insert(0, os.path.join(activity.get_bundle_path(), 'lib'))
import lib.Box2D as box2d
import myelements as elements

import tools
Expand Down

0 comments on commit fdee879

Please sign in to comment.