Skip to content

Commit

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

* Use get_path_or_uri from SourceFile.

Co-authored-by: Johannes Köster <johannes.koester@tu-dortmund.de>
  • 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/script.py
Expand Up @@ -393,10 +393,8 @@ def evaluate(self, edit=False):

@property
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()

@abstractmethod
def get_preamble(self):
Expand Down

0 comments on commit 3398ddf

Please sign in to comment.