Focus3D / crunchy

Automatically exported from code.google.com/p/crunchy
0 stars 0 forks source link

Cannot run crunchy from outside the base crunchy directory #100

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
I was trying to run Crunchy using full path instead of changing directory
and runing with 'python crunchy.py'  

konstantin@konstantin-desktop:~$ python
/home/konstantin/GSOC/python/crunchy/code/crunchy.py
Traceback (most recent call last):
  File "/home/konstantin/GSOC/python/crunchy/code/crunchy.py", line 157, in
<module>
    run_crunchy(port=_port, url=_url)
  File "/home/konstantin/GSOC/python/crunchy/code/crunchy.py", line 47, in
run_crunchy
    pluginloader.init_plugin_system(server)
  File "/home/konstantin/GSOC/python/crunchy/code/src/pluginloader.py",
line 68, in init_plugin_system
    mod = __import__ (plugin, globals())
ImportError: No module named vlam_doctest

of course, i got it working with

konstantin@konstantin-desktop:~$ cd /home/konstantin/GSOC/python/crunchy/code/
konstantin@konstantin-desktop:~/GSOC/python/crunchy/code$ python crunchy.py

Crunchy Server: serving up interactive tutorials at URL http://127.0.0.1:8001/

I am using Crunchy 0.9.9 and Python 2.5.1 on Ubuntu 7.10

Original issue reported on code.google.com by jtraub.d...@gmail.com on 16 Mar 2008 at 5:08

GoogleCodeExporter commented 8 years ago
Yes, crunchy needs to be started with the current working directory set as the
Crunchy base directory. This should really be changed in a future release.

To fix this we would have to add the Crunchy directory to the module resolution 
path.
This shouldn't be too hard - we just have to figure out what that directory is 
(its
possible using the imp module from the standard library).

Original comment by johannes...@gmail.com on 17 Mar 2008 at 10:35

GoogleCodeExporter commented 8 years ago
I guess you can add small shell script/bat file for the first time to fix the 
problem.

Original comment by jtraub.d...@gmail.com on 20 Mar 2008 at 3:32

GoogleCodeExporter commented 8 years ago
Fixed in svn (branch "andre" which is the default trunk currently) by adding the
absolute plugins path to sys.path inside pluginloader.py

Original comment by andre.ro...@gmail.com on 21 Mar 2008 at 11:21

GoogleCodeExporter commented 8 years ago
revision number (for later reference): 599

Original comment by andre.ro...@gmail.com on 21 Mar 2008 at 11:31