Recently I knew about Spyce, and I liked the project.
I was following tutorial and I found that spyceProject.py should be
called in the actual spyce directory to see 'util' directory. (BTW,
Version 2.1.3) The command I ran was:
$ python /usr/local/spyce/spyceProject.py ~/prj/spyce/hello
This failed with:
Traceback (most recent call last):
File "/home/litdream/spyce-2.1/spyceProject.py", line 35, in ?
for fname in os.listdir('util'):
OSError: [Errno 2] No such file or directory: 'util'
I looked at the sourcecode and wrote a quick fix:
> _prj_path = os.path.abspath(sys.argv)
> spyce_path = os.path.dirname(_prj_path)
< for fname in os.listdir('util'):
> for fname in os.listdir(os.path.join(spyce_path, 'util')):
< src = os.path.join('util', fname)
< dst = os.path.join(target, 'www', '_util', fname)
> src = os.path.join(spyce_path,os.path.join('util', fname))
> dst = os.path.join(spyce_path,os.path.join(target, 'www', '_util', fname))
> print "------ %s %s ----------" % (src, dst)
I hope this should not break other codes because I am dealing with
base directory name with separate variables.
Thanks for all who contributes this projects.
Let me know if this doesn't make sense. ( That's possible since I am
completely newbie ;) )