Skip to content

Commit

Permalink
Make gap interface slightly more robust -- automate first load of gap…
Browse files Browse the repository at this point in the history
…_reset_workspace.
  • Loading branch information
williamstein committed Jan 12, 2007
1 parent d496fa7 commit 6be205b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/sage/interfaces/gap.py
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,9 @@
gap_cmd = "gap"

def gap_command(use_workspace_cache=True):
if use_workspace_cache and os.path.exists(WORKSPACE):
if use_workspace_cache:
if not os.path.exists(WORKSPACE):
gap_reset_workspace()
return "%s -L %s"%(gap_cmd, WORKSPACE), False
else:
return gap_cmd, True
Expand Down

0 comments on commit 6be205b

Please sign in to comment.