forked from amperka/ino
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
various small fixes, environment.py still does not behave nicely on m…
…ake install.
- Loading branch information
Showing
3 changed files
with
11 additions
and
5 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
|
||
DESTDIR=/ | ||
PREFIX=/usr/local | ||
PREFIX=/usr | ||
|
||
all: | ||
@# do nothing yet | ||
|
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 |
---|---|---|
@@ -1,5 +1,5 @@ | ||
# -*- coding: utf-8; -*- | ||
|
||
from __future__ import print_function | ||
This comment has been minimized.
Sorry, something went wrong. |
||
import argparse | ||
from collections import OrderedDict | ||
from collections import namedtuple | ||
|
@@ -78,6 +78,12 @@ class Environment(dict): | |
arduino_dist_dir_guesses.insert(0, '/cygdrive/c/Progra~2/Arduino') | ||
arduino_dist_dir_guesses.insert(0, '/cygdrive/c/Progra~3/Arduino') | ||
arduino_dist_dir_guesses.insert(0, '/cygdrive/c/Progra~4/Arduino') | ||
elif platform.system().startswith('MSYS_NT'): | ||
This comment has been minimized.
Sorry, something went wrong. |
||
arduino_dist_dir_guesses.insert(0, '/c/Progra~1/Arduino') | ||
arduino_dist_dir_guesses.insert(0, '/c/Progra~2/Arduino') | ||
arduino_dist_dir_guesses.insert(0, '/c/Progra~3/Arduino') | ||
arduino_dist_dir_guesses.insert(0, '/c/Progra~4/Arduino') | ||
# arduino_dist_dir_guesses.insert(0, '/c/Program Files/Arduino') | ||
elif platform.system() == 'Windows': | ||
arduino_dist_dir_guesses.insert(0, 'c:\\Arduino') | ||
arduino_dist_dir_guesses.insert(0, 'c:\\Progra~1\\Arduino') | ||
|
@@ -152,7 +158,7 @@ def _find(self, key, items, places, human_name, join, multi): | |
if key in self: | ||
return self[key] | ||
|
||
human_name = human_name or key | ||
human_name = human_name or key or 'Null' | ||
This comment has been minimized.
Sorry, something went wrong.
amoose136
Author
Owner
|
||
|
||
# make sure search on current directy first | ||
#places.insert(0,'.') | ||
|
@@ -162,7 +168,7 @@ def _find(self, key, items, places, human_name, join, multi): | |
places = map(os.path.expanduser, places) | ||
|
||
glob_places = itertools.chain.from_iterable(glob(os.path.abspath(p)) for p in places) | ||
|
||
print('Searching for', human_name, '...', end='') | ||
test_func = os.path.isfile if join else os.path.exists | ||
results = [] | ||
|
As @josh-kaplan mentioned on issue amperka#251