-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path__init__.py
More file actions
38 lines (32 loc) · 1.56 KB
/
__init__.py
File metadata and controls
38 lines (32 loc) · 1.56 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
#!/usr/bin/env python #
# #
# Autor: Michela Negro, University of Torino. #
# #
# This program is free software; you can redistribute it and/or modify #
# it under the terms of the GNU GengReral Public License as published by #
# the Free Software Foundation; either version 3 of the License, or #
# (at your option) any later version. #
# #
#------------------------------------------------------------------------------#
"""advlab: Framework for 'Advanced Laboratory' PhD Course
"""
import os
PACKAGE_NAME = 'advlab'
"""Basic folder structure of the package.
"""
ADVLAB_ROOT = os.path.abspath(os.path.dirname(__file__))
ADVLAB_BIN = os.path.join(ADVLAB_ROOT, 'bin')
ADVLAB_CONFIG = os.path.join(ADVLAB_ROOT, 'config')
ADVLAB_UTILS = os.path.join(ADVLAB_ROOT, 'utils')
ADVLAB_DOC = os.path.join(ADVLAB_ROOT, 'doc')
ADVLAB_DATA = os.path.join(ADVLAB_ROOT, 'data')
""" This is the output directory.
"""
try:
ADVLAB_OUT = os.environ['ADVLAB_OUT']
ADVLAB_OUT_FIGURES = os.environ(ADVLAB_OUT, 'figures')
except:
ADVLAB_OUT = os.path.join(ADVLAB_ROOT, 'output')
ADVLAB_OUT_FIGURES = os.path.join(ADVLAB_OUT, 'figures')
if __name__ == '__main__':
print('ADVLAB_ROOT: %s' % ADVLAB_ROOT)