| |
@@ -0,0 +1,39 @@
|
| |
+ diff --git a/myelements/elements.py b/myelements/elements.py
|
| |
+ index dca83f1..19b2a3e 100644
|
| |
+ --- a/myelements/elements.py
|
| |
+ +++ b/myelements/elements.py
|
| |
+ @@ -30,7 +30,7 @@ __contact__ = '<elements@linuxuser.at>'
|
| |
+
|
| |
+ # Load Box2D
|
| |
+ try:
|
| |
+ - import lib.Box2D as box2d
|
| |
+ + import Box2D as box2d
|
| |
+ except:
|
| |
+ print 'Could not load the pybox2d library (Box2D).'
|
| |
+ print 'Please run "setup.py install" to install the dependencies.'
|
| |
+ diff --git a/physics.py b/physics.py
|
| |
+ index 15cbf0d..8f11906 100644
|
| |
+ --- a/physics.py
|
| |
+ +++ b/physics.py
|
| |
+ @@ -36,7 +36,7 @@ from pygame.color import *
|
| |
+
|
| |
+ # from sugar3.activity import activity
|
| |
+ # sys.path.insert(0, os.path.join(activity.get_bundle_path(), 'lib'))
|
| |
+ -import lib.Box2D as box2d
|
| |
+ +import Box2D as box2d
|
| |
+ import myelements as elements
|
| |
+
|
| |
+ import tools
|
| |
+ diff --git a/tools.py b/tools.py
|
| |
+ index 94fd517..e858050 100644
|
| |
+ --- a/tools.py
|
| |
+ +++ b/tools.py
|
| |
+ @@ -32,7 +32,7 @@ from gettext import gettext as _
|
| |
+ from pygame.locals import *
|
| |
+ from helpers import *
|
| |
+
|
| |
+ -import lib.Box2D as box2d
|
| |
+ +import Box2D as box2d
|
| |
+
|
| |
+ from sugar3.activity import activity
|
| |
+
|
| |
Upstream bundles their own copy of Box2D, for which
they append the directory to the python path and import it
the package.
However those import statements do not work, since the Fedora
package unbundles Box2D, thus we have to change them to rely
on the system one.
Resolves: rhbz#1446934