Skip to content

Commit 10731c0

Browse files
committed
Prevent dementpy from running automatically on import
1 parent 14b5af5 commit 10731c0

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/dementpy.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,4 +103,5 @@ def main():
103103
os.chdir('../'+output_folder)
104104
export(Output_init, site, outname)
105105

106-
main()
106+
if __name__ == '__main__':
107+
main()

0 commit comments

Comments
 (0)