pyzbrowser 1.0.1__tar.gz → 1.0.3__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: pyzbrowser
3
- Version: 1.0.1
3
+ Version: 1.0.3
4
4
  Summary: Library to create a file browser interface in browser using Python.
5
5
  Home-page:
6
6
  Author:
@@ -38,10 +38,18 @@ def main():
38
38
  else:
39
39
  print(f"Aviso: O diretório '{name}' ({path}) não foi encontrado.")
40
40
 
41
+ #GET PORT FROM -p ARG
42
+ port_str = "5000"
43
+ if "-p" in os.sys.argv:
44
+ index = os.sys.argv.index("-p")
45
+ if index + 1 < len(os.sys.argv):
46
+ port_str = os.sys.argv[index + 1]
47
+
48
+
41
49
  if not valid_dirs:
42
50
  print("Erro: Nenhum diretório raiz válido foi encontrado.")
43
51
  else:
44
52
  print(
45
53
  f"PyBrowser iniciado com {len(valid_dirs)} pasta(s) raiz: {', '.join(valid_dirs)}"
46
54
  )
47
- app.run(host="0.0.0.0", debug=True, port=5000)
55
+ app.run(host="0.0.0.0", debug=True, port=int(port_str))
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: pyzbrowser
3
- Version: 1.0.1
3
+ Version: 1.0.3
4
4
  Summary: Library to create a file browser interface in browser using Python.
5
5
  Home-page:
6
6
  Author:
@@ -10,7 +10,7 @@ classifiers = [
10
10
 
11
11
  setup(
12
12
  name="pyzbrowser",
13
- version="1.0.1",
13
+ version="1.0.3",
14
14
  description="Library to create a file browser interface in browser using Python.",
15
15
  long_description=open("README.md", encoding="utf-8").read()
16
16
  + "\n\n"
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes