Commits

Ronny Pfannschmidt  committed 80171ea

move the pytest script maker to examples

  • Participants
  • Parent commits 7244883

Comments (0)

Files changed (2)

File examples/make-pytest-script.py

+from genscript.pkgpacker import generate_script
+
+script = generate_script(
+    entry='import py;py.test.cmdline.main()',
+    packages=['py', 'pytest'],
+)
+
+with open('script.py', 'w') as f:
+    f.write(script)

File makescript.py

-from genscript.pkgpacker import generate_script
-
-script = generate_script(
-    entry='import py;py.test.cmdline.main()',
-    packages=['py', 'pytest'],
-)
-
-with open('script.py', 'w') as f:
-    f.write(script)