Skip to content

Commit 84b1209

Browse files
committed
Merge pull request #160 from ARMmbed/fix_error_messages
Fixed invalid call of os.getcwd()
2 parents 34853dc + 1b1dc96 commit 84b1209

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

mbed/mbed.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -501,7 +501,7 @@ def ignores():
501501
with open(Hg.ignore_file, 'w') as f:
502502
f.write("syntax: glob\n"+'\n'.join(ignores)+'\n')
503503
except IOError:
504-
error("Unable to write ignore file in \"%s\"" % os.path.join(os.getcwd, Hg.ignore_file), 1)
504+
error("Unable to write ignore file in \"%s\"" % os.path.join(os.getcwd(), Hg.ignore_file), 1)
505505

506506
def ignore(dest):
507507
Hg.hgrc()
@@ -516,7 +516,7 @@ def ignore(dest):
516516
with open(Hg.ignore_file, 'a') as f:
517517
f.write(dest + '\n')
518518
except IOError:
519-
error("Unable to write ignore file in \"%s\"" % os.path.join(os.getcwd, Hg.ignore_file), 1)
519+
error("Unable to write ignore file in \"%s\"" % os.path.join(os.getcwd(), Hg.ignore_file), 1)
520520

521521
def unignore(dest):
522522
Hg.ignore_file = os.path.join('.hg', 'hgignore')
@@ -532,7 +532,7 @@ def unignore(dest):
532532
with open(Hg.ignore_file, 'w') as f:
533533
f.write('\n'.join(lines) + '\n')
534534
except IOError:
535-
error("Unable to write ignore file in \"%s\"" % os.path.join(os.getcwd, Hg.ignore_file), 1)
535+
error("Unable to write ignore file in \"%s\"" % os.path.join(os.getcwd(), Hg.ignore_file), 1)
536536

537537
# pylint: disable=no-self-argument, no-method-argument, no-member, no-self-use, unused-argument
538538
@scm('git')
@@ -744,7 +744,7 @@ def ignores():
744744
with open(Git.ignore_file, 'w') as f:
745745
f.write('\n'.join(ignores)+'\n')
746746
except IOError:
747-
error("Unable to write ignore file in \"%s\"" % os.path.join(os.getcwd, Git.ignore_file), 1)
747+
error("Unable to write ignore file in \"%s\"" % os.path.join(os.getcwd(), Git.ignore_file), 1)
748748

749749
def ignore(dest):
750750
try:
@@ -758,7 +758,7 @@ def ignore(dest):
758758
with open(Git.ignore_file, 'a') as f:
759759
f.write(dest.replace("\\", "/") + '\n')
760760
except IOError:
761-
error("Unable to write ignore file in \"%s\"" % os.path.join(os.getcwd, Git.ignore_file), 1)
761+
error("Unable to write ignore file in \"%s\"" % os.path.join(os.getcwd(), Git.ignore_file), 1)
762762
def unignore(dest):
763763
try:
764764
with open(Git.ignore_file) as f:
@@ -772,7 +772,7 @@ def unignore(dest):
772772
with open(Git.ignore_file, 'w') as f:
773773
f.write('\n'.join(lines) + '\n')
774774
except IOError:
775-
error("Unable to write ignore file in \"%s\"" % os.path.join(os.getcwd, Git.ignore_file), 1)
775+
error("Unable to write ignore file in \"%s\"" % os.path.join(os.getcwd(), Git.ignore_file), 1)
776776

777777
# Repository object
778778
class Repo(object):

0 commit comments

Comments
 (0)