Skip to content
Permalink
Browse files
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 <johannes.koester@tu-dortmund.de>
  • Loading branch information
bhjolly and johanneskoester committed Nov 23, 2021
1 parent cd968cd commit 3398ddffd1f68182af768ef4ea519e9a9ad4efaf
Showing 1 changed file with 2 additions and 4 deletions.
@@ -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):

0 comments on commit 3398ddf

Please sign in to comment.