From 71d3f856f23abb0f22545cad509befe12bd70159 Mon Sep 17 00:00:00 2001 From: laurentheirendt <laurent.heirendt@uni.lu> Date: Fri, 21 Jun 2019 15:59:30 +0200 Subject: [PATCH] fix rootDir --- contribute.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/contribute.py b/contribute.py index 3ad81cc5..7dbbb843 100644 --- a/contribute.py +++ b/contribute.py @@ -18,7 +18,7 @@ def main(date, name): mainDir = date[:4] # get the root directory - rootDir = os.path.dirname(os.path.realpath(__file__)) + rootDir = os.getcwd() # generate the full name of the presentation fullName = date + "_" + name @@ -31,6 +31,7 @@ def main(date, name): click.echo(' > Date: {0}' . format(date)) click.echo(' > Name: {0}' . format(name)) click.echo(' > Directory: {0}' . format(fullPath)) + click.echo(' > Root directory: {0}' . format(rootDir)) # create the directory if not os.path.exists(fullPath): -- GitLab