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

Data directory layout #3

Open
GoogleCodeExporter opened this issue Nov 7, 2015 · 0 comments
Open

Data directory layout #3

GoogleCodeExporter opened this issue Nov 7, 2015 · 0 comments

Comments

@GoogleCodeExporter
Copy link

What steps will reproduce the problem?
1. unzip aima-data file
2. unzip aima-python file
3. run python doctests.py -v *.py

What is the expected output? What do you see instead?

 * python scripts expect data in '../data' directory; aima-data is unzipped
in '../aima-data' directory;
 * some files are in different subdirectory than is expected by python scripts:
  - wordlist and some other files in subdirectory EN-text; python scripts
are looking for them directly in '../data'; 
  - MAN subdirectory is written as 'man' in text.py (line 219)
    mandir = '../data/man/'
  - in text.txt the FlatLand novel is named flat11.txt (old data version);
new name is flatland.txt
 * aima-data zip file contains .svn subdirectory; this should be removed
since it causes error in text.py, line 171; changing line 220 as below
solves the problem (add 'if not f.startswith('.')'):

man_files = [mandir + f for f in os.listdir(mandir) if not f.startswith('.')]

What version of the product are you using? On what operating system?

aima-data.2008.08.24.zip
Debian/GNU Linux squeeze/sid


Please provide any additional information below.

Original issue reported on code.google.com by [email protected] on 26 Aug 2009 at 2:57

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

No branches or pull requests

1 participant