fix package data search
This commit is contained in:
		@@ -43,14 +43,13 @@ This is free software: you are free to change and redistribute it.
 | 
				
			|||||||
There is NO WARRANTY, to the extent permitted by law.
 | 
					There is NO WARRANTY, to the extent permitted by law.
 | 
				
			||||||
"""
 | 
					"""
 | 
				
			||||||
 | 
					
 | 
				
			||||||
__version__ = '0.1.1'
 | 
					__version__ = '0.1.2'
 | 
				
			||||||
 | 
					
 | 
				
			||||||
import os
 | 
					import os
 | 
				
			||||||
import sys
 | 
					import sys
 | 
				
			||||||
import shutil
 | 
					import shutil
 | 
				
			||||||
import datetime
 | 
					import datetime
 | 
				
			||||||
import logging
 | 
					import logging
 | 
				
			||||||
import importlib.resources
 | 
					 | 
				
			||||||
 | 
					
 | 
				
			||||||
import toml
 | 
					import toml
 | 
				
			||||||
import jinja2
 | 
					import jinja2
 | 
				
			||||||
@@ -377,9 +376,10 @@ def init(dirname: str = '.', no_makefile: bool = False):
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
    # Make Makefile
 | 
					    # Make Makefile
 | 
				
			||||||
    if not no_makefile:
 | 
					    if not no_makefile:
 | 
				
			||||||
 | 
					        # Get package dir `this_dir`
 | 
				
			||||||
 | 
					        this_dir, this_filename = os.path.split(__file__)
 | 
				
			||||||
        makefile = render_template('Makefile.jinja2',
 | 
					        makefile = render_template('Makefile.jinja2',
 | 
				
			||||||
            templates_dir = os.path.dirname(
 | 
					            templates_dir = this_dir,
 | 
				
			||||||
                importlib.resources.path('rsw', 'Makefile.jinja2')),
 | 
					 | 
				
			||||||
            content_dir = DEFAULT_CONFIG['dirs']['content_dir'],
 | 
					            content_dir = DEFAULT_CONFIG['dirs']['content_dir'],
 | 
				
			||||||
            static_dir = DEFAULT_CONFIG['dirs']['static_dir'],
 | 
					            static_dir = DEFAULT_CONFIG['dirs']['static_dir'],
 | 
				
			||||||
            build_dir = DEFAULT_CONFIG['dirs']['build_dir'],
 | 
					            build_dir = DEFAULT_CONFIG['dirs']['build_dir'],
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user