Skip to content


Browse files Browse the repository at this point in the history
fix: Issue #1253 (problems editing Jupyter Notebooks) (#1255)
* fix bug introduced by LocalSourceFile paths

* Use get_path_or_uri from SourceFile.

Co-authored-by: Johannes Köster <>
  • Loading branch information
bhjolly and johanneskoester committed Nov 23, 2021
1 parent cd968cd commit 3398ddf
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions snakemake/
Expand Up @@ -393,10 +393,8 @@ def evaluate(self, edit=False):

def local_path(self):
path = self.path[7:]
if not os.path.isabs(path):
return smart_join(self.basedir, path)
return path
assert self.is_local
return self.path.get_path_or_uri()

def get_preamble(self):
Expand Down

0 comments on commit 3398ddf

Please sign in to comment.