diff --git a/.github/workflows/codeql-analysis.yml b/.github/workflows/codeql-analysis.yml index 2dd483a..53343f7 100644 --- a/.github/workflows/codeql-analysis.yml +++ b/.github/workflows/codeql-analysis.yml @@ -30,7 +30,7 @@ jobs: steps: - name: Checkout repository - uses: actions/checkout@v2 + uses: actions/checkout@v2.3.4 with: # We must fetch at least the immediate parents so that if this is # a pull request then we can checkout the head. diff --git a/.github/workflows/documentation.yml b/.github/workflows/documentation.yml index 6696c6d..4f9e8ce 100644 --- a/.github/workflows/documentation.yml +++ b/.github/workflows/documentation.yml @@ -19,7 +19,7 @@ jobs: # Steps represent a sequence of tasks that will be executed as part of the job steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v2.3.4 with: submodules: 'recursive' - uses: ammaraskar/sphinx-action@0.4 diff --git a/.github/workflows/pythonpackage.yml b/.github/workflows/pythonpackage.yml index d227049..d4f5edd 100644 --- a/.github/workflows/pythonpackage.yml +++ b/.github/workflows/pythonpackage.yml @@ -18,7 +18,7 @@ jobs: python-version: [3.6, 3.7, 3.8, 3.9] steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v2.3.4 with: submodules: 'recursive' - name: Set up Python ${{ matrix.python-version }} diff --git a/src/escpos/printer.py b/src/escpos/printer.py index 47834f6..7a0f7f3 100644 --- a/src/escpos/printer.py +++ b/src/escpos/printer.py @@ -364,6 +364,7 @@ if _WIN32PRINT: else: self.printer_name = win32print.GetDefaultPrinter() self.hPrinter = None + self.open() def open(self, job_name="python-escpos"): if self.printer_name is None: