mirror of
https://github.com/DeaDvey/mathgenerator.git
synced 2025-11-28 06:25:23 +01:00
import with name not asterisk
* import with name not *, remove top level imports * Fix linter, remove numpy * Lint fixes * Comment worksheet generator temporarily
This commit is contained in:
@@ -33,7 +33,7 @@ for subject in subjects:
|
||||
lines = ["from ...__init__ import *\n", "\n"]
|
||||
for item in full_file_paths:
|
||||
if item[:2] != '__':
|
||||
lines.append("from ." + item + " import *\n")
|
||||
lines.append(f"from .{item} import {item}\n")
|
||||
with open(f'../mathgenerator/funcs/{subject}/__init__.py', 'w') as f:
|
||||
f.writelines(lines)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user