From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-lj1-x236.google.com (mail-lj1-x236.google.com [IPv6:2a00:1450:4864:20::236]) by sourceware.org (Postfix) with ESMTPS id 076BB385840F for ; Mon, 3 Jul 2023 22:13:00 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 076BB385840F Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-lj1-x236.google.com with SMTP id 38308e7fff4ca-2b5e7dba43cso79199551fa.1 for ; Mon, 03 Jul 2023 15:12:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1688422378; x=1691014378; h=to:subject:message-id:date:from:mime-version:from:to:cc:subject :date:message-id:reply-to; bh=evNmfVZtMJt2NRKqdzI6oWfWG64id0sdZbMV7w6MZTE=; b=W14WgXYjJLVrJoRNOf8fwxR/yuDXFxbueyU/r/63FGKYkX3WwPLevyTbwDr2MTJctp gNS7KA2qcTgqQO76Tv/ibLOj7yM8iRZvYRA6l0svfMKl6mgF/RCcmgpO2NkUUMpjTixG UqFVV6ZelaBBxKahoy2cvbZUdYlMb1XmT6lnhVX+1BHlYfrq28mLP36tpNh+JMgfqrVF jt5r/K+PiKJFBwmb2ZNYCTPN5L2XrFLEBkrsy+UOjoDVJ0tkF0ECFXlsStfYSrsL1qwO XMRGslBFoadg8D0UZzYtwewdIa5tQXCVGSRM14pj4nIcWKzhlC/B2WlGDCtPImoGSq3+ aAgQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1688422378; x=1691014378; h=to:subject:message-id:date:from:mime-version:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=evNmfVZtMJt2NRKqdzI6oWfWG64id0sdZbMV7w6MZTE=; b=O16lB3UQ1KwoZeotIcvuEsw+mJrHAFpy8Z1gFMZ9kKZyQzcQfLfu1QkbYIU9rWHmrK NIeCFrLUMUz4ZOhq+Y5hiugy+T3osLPHbKEseO2SnonZR4C7QMviny+LUta/Ug1v1FX2 fvwIM3yw6aMWnavmjCySs+lZFI2GyazpZ2wCLjBofWg9G6ts43Oys6eX5siOuYfqIsdn pD0uJ5VNb319CPj8SRC3vx/ZRy8DW/gGNWAjLh7+XGMb85JBx1dh8cUun2lUuUb8p/6A LxJjvOj8/uSxlJNMb4KpteHuXzZR+O79BPaCK69YcmAx0jj0UCTSXyApS1JR2Fdg5SKg Bhtg== X-Gm-Message-State: ABy/qLZVIius9h8sOUnSpIw9OVOzuZrCeXpjNqALEKflfnuCJMl3GYLz bQAYIfiKTV7QlS/Mz8UJsPMtN1mMVOwp/P/4rZXMiZlRhBU= X-Google-Smtp-Source: APBJJlGScDNP2qp2E1yiEfNvFbTVJzJ5roBZ7fP4Eq9P2VyQVRv+f7HjovDtj19nE6WQOGPKpu6VV1DSsTNkBHzR1GQ= X-Received: by 2002:a2e:a17a:0:b0:2b6:dc84:b93e with SMTP id u26-20020a2ea17a000000b002b6dc84b93emr4945731ljl.21.1688422378052; Mon, 03 Jul 2023 15:12:58 -0700 (PDT) MIME-Version: 1.0 From: ravi r Date: Mon, 3 Jul 2023 18:12:46 -0400 Message-ID: Subject: Conda Python script not getting right command line argument To: cygwin@cygwin.com Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=0.2 required=5.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_ENVFROM_END_DIGIT,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS,TXREP,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org List-Id: Using Cygwin Python interpreter invoked from shebang line $ cat /tmp/script1 #!/usr/bin/python print("hello"); $ /tmp/script1 hello $ works as expected. Conda Python interpreter invoked from shebang line $ cat /tmp/script2 #!/usr/local/anaconda3/python print("hello"); $ /tmp/script2 C:\cygwin64\usr\local\anaconda3\python.exe: can't open file 'C:\\tmp\\script2': [Errno 2] No such file or directory $ fails to get the right path of the input file to execute. The correct path that should been passed to the Conda interpreter would have been c:\cygwin64\tmp\script2 Version of cygwin being used base-cygwin 3.8-2