-
Notifications
You must be signed in to change notification settings - Fork 543
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Added adaptive laser cutting option
- Recent menu, justified with directory entries
- Loading branch information
1 parent
06b7883
commit 3aa2536
Showing
5 changed files
with
22 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,8 +5,8 @@ | |
# Author: [email protected] | ||
# Date: 24-Aug-2014 | ||
|
||
__version__ = "0.9.9" | ||
__date__ = "24 Mar 2017" | ||
__version__ = "0.9.10" | ||
__date__ = "3 Aug 2017" | ||
__author__ = "Vasilis Vlachoudis" | ||
__email__ = "[email protected]" | ||
|
||
|
@@ -2477,13 +2477,19 @@ def usage(rc): | |
r = 0 | ||
if r<0: | ||
# display list of recent files | ||
maxlen = 10 | ||
for i in range(Utils._maxRecent): | ||
try: filename = Utils.getRecent(i) | ||
except: continue | ||
maxlen = max(maxlen, len(os.path.basename(filename))) | ||
|
||
sys.stdout.write("Recent files:\n") | ||
for i in range(Utils._maxRecent): | ||
filename = Utils.getRecent(i) | ||
if filename is None: break | ||
d = os.path.dirname(filename) | ||
fn = os.path.basename(filename) | ||
sys.stdout.write(" %2d: %-10s\t%s\n"%(i+1,fn,d)) | ||
sys.stdout.write(" %2d: %-*s %s\n"%(i+1,maxlen,fn,d)) | ||
|
||
try: | ||
sys.stdout.write("Select one: ") | ||
|