Python Forum
Running Python Packages
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Running Python Packages
#9
(Jan-30-2020, 12:37 PM)jefsummers Wrote: Let's go through your code.
You do some imports
You define the variable TOOL to be a string with a value of 'type1'
You define 3 functions, two with decorators.
The functions are defined, but never called.
The only action your program does, after imports, is assign a string to a variable.

So, the imports are obvious. The variable is obvious - points to a host of postscript utilities. Presumably, -s is one of the decorators you're referencing, otherwise I'm not clear on what constitutes as a decorator or how these would relate to the 3 functions which are also obvious. I tried adding this call function:

print(TOOL)

But saw no output.
Reply


Messages In This Thread
Running Python Packages - by mojobadshah - Jan-27-2020, 07:19 PM
RE: Running Python Packages - by jefsummers - Jan-27-2020, 08:55 PM
RE: Running Python Packages - by mojobadshah - Jan-28-2020, 07:11 PM
RE: Running Python Packages - by jefsummers - Jan-28-2020, 08:35 PM
RE: Running Python Packages - by mojobadshah - Jan-29-2020, 07:32 PM
RE: Running Python Packages - by mojobadshah - Jan-30-2020, 04:23 AM
RE: Running Python Packages - by jefsummers - Jan-29-2020, 09:07 PM
RE: Running Python Packages - by jefsummers - Jan-30-2020, 12:37 PM
RE: Running Python Packages - by mojobadshah - Jan-30-2020, 05:07 PM
RE: Running Python Packages - by jefsummers - Jan-30-2020, 07:11 PM
RE: Running Python Packages - by mojobadshah - Jan-30-2020, 10:28 PM

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020