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

Failing to load files from Word Automata Library #1

Open
FinnLidbetter opened this issue Oct 18, 2018 · 0 comments
Open

Failing to load files from Word Automata Library #1

FinnLidbetter opened this issue Oct 18, 2018 · 0 comments

Comments

@FinnLidbetter
Copy link

If the Main.prover class is run from a directory that is not Walnut/bin, i.e., the program is run using
java -cp /pathToWalnut/bin Main.prover from a directory that is not Walnut/bin, then files in the Word Automata Library do not load correctly. This seems to be due to the setPaths() method in the Main.UtilityMethods class. The method only handles what to do if the user's working directory is already Walnut/bin.

public static void setPaths(){
  String path = System.getProperty("user.dir");
  if(path.substring(path.length()-3).equals("bin"))
    dir = "../";
}

(Use case arose when writing a program that runs Walnut as a subprocess).

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

1 participant