(project)
Creates the project directory for compiled modules.
Creates the project directory for compiled modules.
Creates the project directory for compiled modules .
def make_dir(project):
    """ Creates the project directory for compiled modules. """
    project_path = os.path.join(os.path.dirname(__file__), project)
    # Delete the directory and the files inside it
    if os.path.exists(project_path):
        shutil.rmtree(project_path)
    # Create the directory
    os.mkdir(project_path)
    # We need a __init__.py file inside the directory
    with open(os.path.join(project_path, '__init__.py'), 'w') as fp:
        fp.write('__version__ = "' + str(get_property('__version__', 'geomdl')) + '"\n')
        fp.write('__author__ = "' + str(get_property('__author__', 'geomdl')) + '"\n')
        fp.write('__license__ = "' + str(get_property('__license__', 'geomdl')) + '"\n')
def make_dir ( project ) : project_path = os . path . join ( os . path . dirname ( __file__ ) , project ) # Delete the directory and the files inside it if os . path . exists ( project_path ) : shutil . rmtree ( project_path ) # Create the directory os . mkdir ( project_path ) # We need a __init__.py file inside the directory with open ( os . path . join ( project_path , '__init__.py' ) , 'w' ) as fp : fp . write ( '__version__ = "' + str ( get_property ( '__version__' , 'geomdl' ) ) + '"\n' ) fp . write ( '__author__ = "' + str ( get_property ( '__author__' , 'geomdl' ) ) + '"\n' ) fp . write ( '__license__ = "' + str ( get_property ( '__license__' , 'geomdl' ) ) + '"\n' )