oliverwoodings / texwatch

Utility for watching and building LaTeX projects
0 stars 0 forks source link

Directory should not be an option - it should be inferred from path #4

Open oliverwoodings opened 9 years ago

oliverwoodings commented 9 years ago

Having directory as a config option is dumb - we should be more intelligent and just deduce it from the path:

  1. If no path is given, assume file is called document.pdf and directory is current executing directory
  2. If path is given and it is only a directory, assume file is called document.pdf and directory is the path
  3. If path is given and it is a file, assume file is the filename in the path and directory is the directory of the file