Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

running demos easily #48

Closed
paddywwoof opened this issue Jan 11, 2013 · 1 comment
Closed

running demos easily #48

paddywwoof opened this issue Jan 11, 2013 · 1 comment
Assignees

Comments

@paddywwoof
Copy link
Collaborator

  1. if you try to run from geany using Demo.py in the top directory it's fine so long as build commands tell it to execute python ../Demo.py "%e" from the demos directory as working directory (ie nothing in the field).
  2. If you tell it to use the full path as the working path to top directory it works fine with python Demo.py "%e"
  3. If you tell it to use ../ as the working directory it Fails to create file:Permission denied
    option 1 is simplest as it only need to have one field changed

if you try to run without using Demo.py in the top directory:
when in top directory
..$ python demos/Pi3d2.py
Traceback (most recent call last):
File "demos/Pi3d2.py", line 5, in
from pi3d import *
ImportError: No module named pi3d

when in demos directory (which is really where we want the demos to run from i.e. if opened with geany this is where they would run from)
../demos $ python demos/Pi3d2.py
Traceback (most recent call last):
File "Pi3d2.py", line 5, in
from pi3d import *
ImportError: No module named pi3d

@ghost ghost assigned rec Jan 11, 2013
@rec
Copy link
Collaborator

rec commented Jan 11, 2013

You can only run files at the top level of the project (without adding messy command line flags). So there's a demo running program called Demo.

You can either run python Demo.py Pi3d2 or run python Demo.py and select Pi3d2 from the tk pulldown menu.

Does this work for you?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants