Is there any device in the dragon to rewrite some code that imports such things, so that now nothing could not be imported?
box Diff box (text = 'hello, world!') Box magic return
In the program (we warn it) It says: From box import box box ('warning, found water in hard drive')
The device that I will import into the box function (or a class for that matter) will be seen in the warning and warn that function (or class or variable definitions) in the warning. Remove Py Script import line (thus making it more portable)?
With thanks, Narnie
It seems that all files are effective Which way would you like to copy into a file, which would be able to distribute a file instead of many files?
In that case, instead of copy-pasting a file, check to use a zipped module ... it is longer more satisfying.
Python will execute a zip file if any __ main__. Py is the file in it.
Example: echo "def foo (): 'printing inside ACP' code" "& gt; A.py echo" def bar (): Print 'code inside b.py' "& gt; B.py" import one; Import; A.foo (); B.bar () "& gt; import; __main__.py zip test.zip a.py b __main__.py rm a.py b.py __main__.py python test.zip
It creates a zip file that contains 3 python files inside it, it can be executed with the dragon test.zip
everything is completely self-contained (I believe This requires dragon> = 2.6, by the way ...)
Comments
Post a Comment