Skip to content

Commit

Permalink
Fix missing Cargo.toml
Browse files Browse the repository at this point in the history
  • Loading branch information
maralla committed Aug 14, 2018
1 parent 531347a commit 3f56e45
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pythonx/lints/rust.py
Original file line number Diff line number Diff line change
@@ -51,4 +51,5 @@ def cmd(self, fname):

@property
def cwd(self):
return os.path.dirname(find_file('Cargo.toml'))
path = find_file('Cargo.toml')
return os.path.dirname(path) if path else os.getcwd()

0 comments on commit 3f56e45

Please sign in to comment.