[med-svn] [sparta] 01/04: Make sure subfolders will be created as well

Andreas Tille tille at debian.org
Wed Aug 3 08:45:48 UTC 2016


This is an automated email from the git hooks/post-receive script.

tille pushed a commit to branch master
in repository sparta.

commit e7a3578909f5434db98cf260790dda17f783124e
Author: Andreas Tille <tille at debian.org>
Date:   Fri Jul 29 15:04:05 2016 +0200

    Make sure subfolders will be created as well
---
 debian/patches/fix_default_folder_creation.patch | 15 +++++++++++++++
 debian/patches/series                            |  1 +
 2 files changed, 16 insertions(+)

diff --git a/debian/patches/fix_default_folder_creation.patch b/debian/patches/fix_default_folder_creation.patch
new file mode 100644
index 0000000..055be51
--- /dev/null
+++ b/debian/patches/fix_default_folder_creation.patch
@@ -0,0 +1,15 @@
+Author: Andreas Tille <tille at debian.org>
+Last-Updata: Thu, 28 Jul 2016 15:13:14 +0200
+Description: Make sure subfolders will be created as well
+
+--- a/qc_analysis.py
++++ b/qc_analysis.py
+@@ -44,7 +44,7 @@ class QC_analysis(object):
+         now = datetime.datetime.now()
+         #all data folder will go into RNAseq_Data, if it doesn't already exist from previous runs it wil be created
+         if not os.path.isdir(default_folder_loc):
+-            os.mkdir(default_folder_loc)
++            os.makedirs(default_folder_loc)
+         dateofrun = now.strftime("%Y-%m-%d")
+         defined_full_path = os.path.join(default_folder_loc, dateofrun)  #path to the subfolder inside RNAseq_Data
+         #if the specified folder is a valid directory name then it will create the folder and exit the function
diff --git a/debian/patches/series b/debian/patches/series
new file mode 100644
index 0000000..47d3605
--- /dev/null
+++ b/debian/patches/series
@@ -0,0 +1 @@
+fix_default_folder_creation.patch

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-med/sparta.git



More information about the debian-med-commit mailing list